Skip to content

Commit

Permalink
Ignore DL3002 (root user)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 13, 2023
1 parent 317730e commit 08eab98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/_docker-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
publish:
required: true
type: boolean
ignore-linting-rules:
required: false
type: string

jobs:
build:
Expand All @@ -30,7 +33,7 @@ jobs:
- uses: hadolint/[email protected]
with:
dockerfile: ${{ inputs.docker-context }}/${{ inputs.dockerfile }}
ignore: SC1091
ignore: SC1091,${{ inputs.ignore-linting-rules }}
- name: ShellCheck
run: |
cd docker/${{ inputs.image-name }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
docker-context: docker/tna-python-root
dockerfile: Dockerfile
publish: true
ignore-linting-rules: DL3002

python-django:
name: Python Django
Expand All @@ -52,3 +53,4 @@ jobs:
docker-context: docker/tna-python-django-root
dockerfile: Dockerfile
publish: true
ignore-linting-rules: DL3002
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
docker-context: docker/tna-python-root
dockerfile: Dockerfile
publish: false
ignore-linting-rules: DL3002

python-django:
name: Python Django
Expand All @@ -49,3 +50,4 @@ jobs:
docker-context: docker/tna-python-django-root
dockerfile: Dockerfile
publish: false
ignore-linting-rules: DL3002

0 comments on commit 08eab98

Please sign in to comment.