Skip to content

Commit d948e6b

Browse files
authored
fix: github actions versions and warnings (argoproj#639)
* fix: github actions versions and warnings - [x] upgrade github/actions/cache GitHub Action to latest - this fixings the following warnings (example list [here](https://github.com/argoproj/gitops-engine/actions/runs/11885468091)): - Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/[email protected]. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/ - The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ - The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ - [x] update dependabot config - prefix PRs with `chore(deps)` - group non major version updates into 1 PR Signed-off-by: jmeridth <[email protected]> * fix: switch to SHA from tags more secure, as tags are mutable Signed-off-by: jmeridth <[email protected]> --------- Signed-off-by: jmeridth <[email protected]>
1 parent 8849c3f commit d948e6b

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/dependabot.yml

+16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
commit-message:
8+
prefix: "chore(deps)"
9+
groups:
10+
dependencies:
11+
applies-to: version-updates
12+
update-types:
13+
- "minor"
14+
- "patch"
715
- package-ecosystem: "github-actions"
816
directory: "/"
917
schedule:
1018
interval: "daily"
19+
commit-message:
20+
prefix: "chore(deps)"
21+
groups:
22+
dependencies:
23+
applies-to: version-updates
24+
update-types:
25+
- "minor"
26+
- "patch"

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@master
16-
- uses: actions/cache@v2.1.6
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
1717
with:
1818
path: ~/go/pkg/mod
1919
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2020
restore-keys: |
2121
${{ runner.os }}-go-
22-
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.0
22+
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2323
with:
2424
go-version-file: go.mod
2525
- run: make test
2626
- name: Run golangci-lint
27-
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
27+
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
2828
with:
2929
version: v1.58.2
3030
args: --timeout 5m
31-
- uses: codecov/codecov-action@v3.1.0
31+
- uses: codecov/codecov-action@a2f73fb6db51fcd2e0aa085dfb36dea90c5e3689 # v5.0.2
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }} #required
3434
file: ./coverage.out

0 commit comments

Comments
 (0)