Skip to content

Commit a03049e

Browse files
authored
Merge pull request #179 from sir-gon/develop
[CONFIG] Docker Alpine-based images updated to Alpine 3.20
2 parents 106b573 + 83c8ab2 commit a03049e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,20 @@ jobs:
2525
- name: Tag Docker image
2626
run: docker tag algorithm-exercises-java:latest algorithm-exercises-java:${{ github.sha }}
2727

28+
- name: Run Snyk to check Docker image for vulnerabilities
29+
# Snyk can be used to break the build when it detects vulnerabilities.
30+
# In this case we want to upload the issues to GitHub Code Scanning
31+
continue-on-error: true
32+
uses: snyk/actions/docker@master
33+
env:
34+
# In order to use the Snyk Action you will need to have a Snyk API token.
35+
# See https://docs.snyk.io/integrations/ci-cd-integrations/github-actions-integration#getting-your-snyk-token
36+
# or you can sign up for free at https://snyk.io/login
37+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
38+
with:
39+
image: algorithm-exercises-java:latest
40+
args: --file=Dockerfile
41+
# - name: Upload result to GitHub Code Scanning
42+
# uses: github/codeql-action/upload-sarif@v2
43+
# with:
44+
# sarif_file: snyk.sarif

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apk add --update --no-cache make
66
WORKDIR /app
77

88
###############################################################################
9-
FROM node:22.2.0-alpine3.19 AS lint
9+
FROM node:20.14.0-alpine3.20 AS lint
1010

1111
ENV WORKDIR=/app
1212
WORKDIR ${WORKDIR}

0 commit comments

Comments
 (0)