Skip to content

Commit

Permalink
Adds hadolint to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
raonigabriel committed Feb 7, 2023
1 parent d0884e7 commit 629f467
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of Sonar analysis
- name: Hadolint
uses: hadolint/hadolint-action@v3.1.0
ignore: SC2086,DL3018
with:
dockerfile: ./Dockerfile
- name: SonarCloud Scan
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/**
4 changes: 4 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ignored:
- DL3018 # Pin versions in apk add. Instead of apk add <package>, use apk add <package>:<version>
- SC2086 # Double quote to prevent globbing and word splitting
- DL3006 # Always tag the version of an image explicitly

0 comments on commit 629f467

Please sign in to comment.