Skip to content

Commit 4198294

Browse files
committed
Use major versions for workflows
1 parent 5b5fcf0 commit 4198294

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/workflows/anchore-syft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout the code
31-
uses: actions/checkout@v4.1.5
31+
uses: actions/checkout@v4
3232

3333
- name: Build the Docker image
3434
run: docker build . --file Dockerfile --tag ams21/tor-relay:latest

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111

1212
steps:
1313
- name: Check out the repo
14-
uses: actions/checkout@v4.1.5
14+
uses: actions/checkout@v4
1515

1616
- name: Docker Setup QEMU
17-
uses: docker/setup-qemu-action@v3.0.0
17+
uses: docker/setup-qemu-action@v3
1818

1919
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v3.3.0
20+
uses: docker/setup-buildx-action@v3
2121

2222
- name: Build Docker image
23-
uses: docker/build-push-action@v5.3.0
23+
uses: docker/build-push-action@v5
2424
with:
2525
context: .
2626
push: false

.github/workflows/deploy.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,30 @@ jobs:
2626

2727
steps:
2828
- name: Check out the repo
29-
uses: actions/checkout@v4.1.5
29+
uses: actions/checkout@v4
3030

3131
- name: Docker Setup QEMU
32-
uses: docker/setup-qemu-action@v3.0.0
32+
uses: docker/setup-qemu-action@v3
3333

3434
- name: Set up Docker Buildx
35-
uses: docker/setup-buildx-action@v3.3.0
35+
uses: docker/setup-buildx-action@v3
3636

3737
- name: Log in to Docker Hub
38-
uses: docker/login-action@v3.1.0
38+
uses: docker/login-action@v3
3939
with:
4040
username: ${{ secrets.DOCKER_USERNAME }}
4141
password: ${{ secrets.DOCKER_PASSWORD }}
4242

4343
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v3.1.0
44+
uses: docker/login-action@v3
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.repository_owner }}
4848
password: ${{ secrets.GITHUB_TOKEN }}
4949

5050
- name: Docker meta
5151
id: meta
52-
uses: docker/metadata-action@v5.5.1
52+
uses: docker/metadata-action@v5
5353
with:
5454
# list of Docker images to use as base name for tags
5555
images: |
@@ -65,7 +65,7 @@ jobs:
6565
6666
- name: Build and push Docker image
6767
id: push
68-
uses: docker/build-push-action@v5.3.0
68+
uses: docker/build-push-action@v5
6969
with:
7070
context: ./
7171
push: true
@@ -76,14 +76,14 @@ jobs:
7676
labels: ${{ steps.meta.outputs.labels }}
7777

7878
- name: Attest Docker Hub
79-
uses: actions/attest-build-provenance@v1.1.1
79+
uses: actions/attest-build-provenance@v1
8080
with:
8181
subject-name: index.docker.io/ams21/tor-relay
8282
subject-digest: ${{ steps.push.outputs.digest }}
8383
push-to-registry: true
8484

8585
- name: Attest GitHub Container Registry
86-
uses: actions/attest-build-provenance@v1.1.1
86+
uses: actions/attest-build-provenance@v1
8787
with:
8888
subject-name: ghcr.io/ams21/tor-relay
8989
subject-digest: ${{ steps.push.outputs.digest }}

.github/workflows/hadolint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ jobs:
2727

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v4.1.5
30+
uses: actions/checkout@v4
3131

3232
- name: Run hadolint
33-
uses: hadolint/hadolint-action@v3.1.0
33+
uses: hadolint/hadolint-action@v3
3434
with:
3535
dockerfile: ./Dockerfile
3636
format: sarif
3737
output-file: hadolint-results.sarif
3838
no-fail: true
3939

4040
- name: Upload analysis results to GitHub
41-
uses: github/codeql-action/upload-sarif@v3.25.5
41+
uses: github/codeql-action/upload-sarif@v3
4242
with:
4343
sarif_file: hadolint-results.sarif
4444
wait-for-processing: true

.github/workflows/trivy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout code
27-
uses: actions/checkout@v4.1.5
27+
uses: actions/checkout@v4
2828

2929
- name: Build an image from Dockerfile
3030
run: |
@@ -40,6 +40,6 @@ jobs:
4040
severity: 'CRITICAL,HIGH'
4141

4242
- name: Upload Trivy scan results to GitHub Security tab
43-
uses: github/codeql-action/upload-sarif@v3.25.5
43+
uses: github/codeql-action/upload-sarif@v3
4444
with:
4545
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)