Some checks failed
actionlint check / actionlint check (pull_request) Successful in 5s
checkov check / checkov check (pull_request) Successful in 43s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 4s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 2s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 10s
GitLeaks check / GitLeaks check (pull_request) Successful in 7s
hadolint check / hadolint check (pull_request) Failing after 7s
htmlhint check / htmlhint check (pull_request) Successful in 10s
markdownlint check / markdownlint check (pull_request) Failing after 8s
Prettier check / Prettier check (pull_request) Failing after 9s
Rust check / Rust check (pull_request) Failing after 1m20s
ShellCheck check / ShellCheck check (pull_request) Successful in 11s
Stylelint check / Stylelint check (pull_request) Failing after 14s
yamllint check / yamllint check (pull_request) Successful in 12s
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
name: hadolint check
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
pull_request:
|
|
types: [opened, edited, reopened, synchronize]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
name: hadolint check
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
packages: read
|
|
statuses: write
|
|
steps:
|
|
- name: hadolint installation
|
|
working-directory: /bin
|
|
run: |
|
|
set -e
|
|
|
|
VERSION="v2.12.0"
|
|
CHECKSUM="5798551bf19f33951881f15eb238f90aef023f11e7ec7e9f4c37961cb87c5df6 hadolint"
|
|
|
|
wget -O hadolint "https://github.com/hadolint/hadolint/releases/download/$VERSION/hadolint-Linux-arm64"
|
|
echo "$CHECKSUM" | sha256sum --check
|
|
|
|
chmod +x hadolint
|
|
- name: code checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
fetch-depth: 0
|
|
- name: hadolint check
|
|
run: |
|
|
STATUS=0
|
|
while read -r file; do
|
|
echo "Linting $file..."
|
|
hadolint "$file" || STATUS=1
|
|
done < <(find . -name "Dockerfile")
|
|
exit $STATUS
|