Skip to content

Commit 3c17608

Browse files
committed
Fix: Use recent releases for workflow jobs pipeline
* actions/[email protected] * actions/[email protected] * docker/[email protected] * docker/[email protected] * docker/[email protected] * aquasecurity/[email protected]
1 parent 141aebb commit 3c17608

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/docker-build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,39 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4.2.2
1717

1818
# Step 2: Debug: Verify api_stats.sh and repository content
1919
- name: List repository files
2020
run: ls -R .; pwd
2121
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v1
22+
uses: docker/setup-buildx-action@v3.10.0
2323

2424
- name: Log in to GitHub Container Registry
25-
uses: docker/login-action@v3
25+
uses: docker/login-action@v3.4.0
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.repository_owner }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
- name: Build and push Docker image
31-
uses: docker/build-push-action@v2
31+
uses: docker/build-push-action@v6.18.0
3232
with:
3333
context: .
3434
file: nginx-utils/Dockerfile
3535
push: true
3636
tags: ghcr.io/nginx/nginx-utils:latest
3737

3838
# Step 5: Install Trivy for Vulnerability Scanning
39-
- name: Install Trivy
40-
uses: aquasecurity/[email protected]
39+
- name: Install Trivy and scan image for vulnerabilities
40+
uses: aquasecurity/[email protected]
41+
4142
with:
4243
image-ref: ghcr.io/${{ github.repository_owner }}/nginx-utils:latest
4344
format: json
4445
output: vuln-report.json
4546

4647
- name: Upload Vulnerability Report
47-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v4.6.2
4849
with:
4950
name: vuln-report
5051
path: vuln-report.json

0 commit comments

Comments
 (0)