Skip to content

Commit

Permalink
Add GHA for hadolint (#54)
Browse files Browse the repository at this point in the history
* Add GHA for `hadolint`

* Update main.yml
  • Loading branch information
gab-arrobo authored Mar 20, 2024
1 parent ec63484 commit 20560a8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ jobs:
- name: Build Docker image
run: make docker-build

hadolint:
name: hadolint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Dockerfile linter
uses: hadolint/hadolint-action@v3.1.0
# For now, ignoring:
# DL3008 warning: Pin versions in apt get install (e.g., apt-get install <package>=<version>); and
# DL3018 warning: Pin versions in apk add (e.g., apk add <package>=<version>)
with:
dockerfile: Dockerfile
ignore: DL3008,DL3018

license-check:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 20560a8

Please sign in to comment.