Skip to content

Commit

Permalink
Upgrade various gha steps
Browse files Browse the repository at this point in the history
Avoid messages like:

```
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, coverallsapp/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
```
  • Loading branch information
jspc committed Dec 31, 2023
1 parent ade1c49 commit a44ba38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1

- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '>=1.21.0'

Expand All @@ -31,7 +31,7 @@ jobs:
uses: jandelgado/[email protected]

- name: Coveralls
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
Expand All @@ -47,7 +47,7 @@ jobs:
golangci-lint run --skip-files='.*_test.go'
- name: Archive stuff
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.0.0
with:
name: build-artefacts
path: |
Expand All @@ -65,7 +65,7 @@ jobs:
fetch-depth: 0

- name: Download artefacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.0
with:
name: build-artefacts

Expand All @@ -84,15 +84,15 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1

- name: Download artefacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.0
with:
name: build-artefacts

- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v1
uses: CycloneDX/gh-gomod-generate-sbom@v2
with:
version: v1
args: mod -licenses -json -output bom.json
Expand Down

0 comments on commit a44ba38

Please sign in to comment.