- Add update-crypto-cve-2025-47913.patch: Update golang.org/x/crypto from v0.37.0 to v0.43.0 to fix SSH agent DoS vulnerability where SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process. Affects pkg/runner/action_cache.go which uses SSH agent functions via go-git. - Regenerate vendor.tar.gz with updated dependencies OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/act?expand=0&rev=26
67 lines
2.0 KiB
RPMSpec
67 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package act
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
# Copyright (c) 2021 Orville Q. Song <orville@anislet.dev>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global provider github
|
|
%global provider_tld com
|
|
%global project nketos
|
|
%global repo act
|
|
%global provider_prefix %{provider}.%{provider_tld}/%{project}
|
|
%global import_path %{provider_prefix}/%{repo}
|
|
Name: act
|
|
Version: 0.2.82
|
|
Release: 0
|
|
Summary: Run your GitHub Actions locally
|
|
License: MIT
|
|
Group: Development/Tools/Other
|
|
URL: https://github.com/nektos/act
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: vendor.tar.gz
|
|
# PATCH-FIX-UPSTREAM update-crypto-cve-2025-47913.patch bsc#1253608 elimat@opensuse.org -- Update golang.org/x/crypto to v0.43.0 to fix CVE-2025-47913 (GO-2025-4116)
|
|
Patch0: update-crypto-cve-2025-47913.patch
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: golang(API) >= 1.16
|
|
Requires: (docker or podman)
|
|
%{go_nostrip}
|
|
%{go_provides}
|
|
|
|
%description
|
|
act helps you run your Github Actions locally.
|
|
|
|
%prep
|
|
%setup -q
|
|
%setup -q -a1 %{SOURCE1}
|
|
%patch -P 0 -p0
|
|
sed -i 's_var version = \"v0.2.27-dev\"_var version = "%{version}"_g' main.go
|
|
|
|
%build
|
|
%{goprep} .
|
|
mkdir -p vendor/%{provider_prefix}
|
|
ln -s . vendor/%{import_path}
|
|
%{gobuild} -ldflags "-s -w -X main.Version=v%{version}" .
|
|
|
|
%install
|
|
%{goinstall}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|