Skip to content

Commit 019abe5

Browse files
Pin dependencies
1 parent a1f376b commit 019abe5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/anchore.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout the code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
3939
- name: Build the Docker image
4040
run: docker build . --file ${{ env.DOCKERFILE }} --tag localbuild/testimage:latest
4141
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
42-
uses: anchore/scan-action@v3
42+
uses: anchore/scan-action@3343887d815d7b07465f6fdcd395bd66508d486a # v3
4343
with:
4444
image: "localbuild/testimage:latest"
4545
fail-build: true
4646
severity-cutoff: "high"
4747
- name: Upload Anchore Scan Report
48-
uses: github/codeql-action/upload-sarif@v2
48+
uses: github/codeql-action/upload-sarif@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
4949
if: always()
5050
with:
5151
sarif_file: results.sarif

Dockerfile.test-only

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM maven:3-jdk-11-slim as buildtime
1+
FROM maven:3-jdk-11-slim@sha256:2cb7c73ba2fd0f7ae64cfabd99180030ec85841a1197b4ae821d21836cb0aa3b as buildtime
22

33
WORKDIR /build
44
COPY . .
55

66
RUN mvn clean package
77

8-
FROM amazoncorretto:11 as runtime
8+
FROM amazoncorretto:11@sha256:89b6c49b62d84d7a8f769e43ab03f0fb016dbf90cd768629b9d9b6efe9be6940 as runtime
99

1010
WORKDIR /app
1111

0 commit comments

Comments
 (0)