Skip to content

Commit d4b46d3

Browse files
ci: update GitHub workflows
Signed-off-by: Prashant Shahi <[email protected]>
1 parent 86f19f6 commit d4b46d3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build-and-publish.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ env:
1818

1919
jobs:
2020
build:
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-24.04
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
# Need tags for Makefile logic to work
2626
fetch-depth: 0
2727
- name: Build the Docker images
2828
run: make images
2929
scan:
3030
needs: [ "build" ]
31-
runs-on: ubuntu-20.04
31+
runs-on: ubuntu-24.04
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
with:
3535
# Need tags for Makefile logic to work
3636
fetch-depth: 0
@@ -58,28 +58,28 @@ jobs:
5858
skip-files: /usr/local/bin/kubectl
5959
# just upload root scan results
6060
- name: Upload Trivy Scan Results to GitHub Security Tab
61-
uses: github/codeql-action/upload-sarif@v2
61+
uses: github/codeql-action/upload-sarif@v3
6262
if: always()
6363
with:
6464
sarif_file: 'trivy-results-root.sarif'
6565

6666
deploy:
6767
needs: [ "scan" ]
68-
runs-on: ubuntu-20.04
68+
runs-on: ubuntu-24.04
6969
if: github.event_name == 'release' && github.event.action == 'created'
7070
steps:
7171
- name: Login to Docker Hub
72-
uses: docker/login-action@v2
72+
uses: docker/login-action@v3
7373
with:
7474
username: ${{ secrets.DOCKERHUB_USERNAME }}
7575
password: ${{ secrets.DOCKERHUB_TOKEN }}
7676
- name: Login to GitHub Container Registry
77-
uses: docker/login-action@v2
77+
uses: docker/login-action@v3
7878
with:
7979
registry: ghcr.io
8080
username: ${{ github.actor }}
8181
password: ${{ secrets.GHCR_TOKEN }}
82-
- uses: actions/checkout@v2
82+
- uses: actions/checkout@v4
8383
with:
8484
# Need tags for Makefile logic to work
8585
fetch-depth: 0

.github/workflows/trivy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
permissions:
1212
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
1313
name: Security Scan
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Run Trivy vulnerability scanner
17-
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
17+
uses: aquasecurity/trivy-action@master
1818
with:
1919
# just scan the latest released image
2020
image-ref: 'ghcr.io/prashant-shahi/k8s-wait-for:latest'
2121
format: 'sarif'
2222
output: 'trivy-results.sarif'
2323
severity: 'CRITICAL,HIGH'
2424
- name: Upload Trivy scan results to GitHub Security tab
25-
uses: github/codeql-action/upload-sarif@v2
25+
uses: github/codeql-action/upload-sarif@v3
2626
with:
2727
sarif_file: 'trivy-results.sarif'
2828
- name: Fail if scan found vulnerabilities

0 commit comments

Comments
 (0)