Skip to content

fix(drupal): apply hadolint best practices to Dockerfile #6

fix(drupal): apply hadolint best practices to Dockerfile

fix(drupal): apply hadolint best practices to Dockerfile #6

Workflow file for this run

name: Lint Dockerfiles
on:
push:
branches: [main, develop]
paths:
- '**/Dockerfile'
- '**/Dockerfile.*'
- '**/*.Dockerfile'
- '.github/workflows/lint.yml'
pull_request:
branches: [main]
paths:
- '**/Dockerfile'
- '**/Dockerfile.*'
- '**/*.Dockerfile'
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfiles with Hadolint
uses: hadolint/hadolint-action@v3.1.0
with:
recursive: true
failure-threshold: error
ignore: DL3008,DL3013,DL3018,DL3059
format: sarif
output-file: hadolint-results.sarif
- name: Upload Hadolint Report
if: always() && hashFiles('hadolint-results.sarif') != ''
uses: actions/upload-artifact@v4
with:
name: hadolint-report
path: hadolint-results.sarif
retention-days: 5