Commit 07078749
070787497d3aMerged
Dmitriy Zhilyaev <[email protected]> ยท 3 years ago ยท 1 file ยท ~1 modified
Description
Update hadolint.yml
Details
- Commit
- 070787497d3a
- Parent
- f11a94caf477
.github/workflows/hadolint.ymlmodifiedView file
@@ -1,20 +1,48 @@
1-
name: hadolint1+
# This workflow uses actions that are not certified by GitHub.2+
# They are provided by a third-party and are governed by3+
# separate terms of service, privacy policy, and support4+
# documentation.5+
# hadoint is a Dockerfile linter written in Haskell6+
# that helps you build best practice Docker images.7+
# More details at https://github.com/hadolint/hadolint28
9+
name: Hadolint310
411
on:512
push:6-
paths:7-
- 'Dockerfile'13+
branches: [ "main", "release/*" ]14+
pull_request:15+
# The branches below must be a subset of the branches above16+
branches: [ "main" ]17+
schedule:18+
- cron: '37 1 * * 4'19+
20+
permissions:21+
contents: read822
923
jobs:10-
analyze:11-
name: Analyze24+
hadolint:25+
name: Run hadolint scanning1226
runs-on: ubuntu-latest27+
permissions:28+
contents: read # for actions/checkout to fetch code29+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results30+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status31+
steps:32+
- name: Checkout code33+
uses: actions/checkout@v334+
35+
- name: Run hadolint36+
uses: hadolint/hadolint-action@f988afea3da57ee48710a9795b6bb677cc90118337+
with:38+
dockerfile: ./Dockerfile39+
format: sarif40+
output-file: hadolint-results.sarif41+
no-fail: true1342
14-
steps:15-
- name: Checkout repository16-
uses: actions/[email protected]17-
- uses: hadolint/hadolint-action@v318-
with:19-
dockerfile: Dockerfile20-
config: .hadolint.yaml43+
- name: Upload analysis results to GitHub44+
uses: github/codeql-action/upload-sarif@v245+
with:46+
sarif_file: hadolint-results.sarif47+
wait-for-processing: true48+