Skip to content

add shellcheck scan action #13

add shellcheck scan action

add shellcheck scan action #13

Workflow file for this run

name: Linters
on:
workflow_call:
workflow_dispatch:
pull_request:
env:
HADOLINT_RESULTS_FILE: hadolint.sarif
jobs:
hadolint:
name: dockerfile lint
runs-on: ubuntu-latest
steps:
- name: "setup: checkout repo"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: "scan: ./Dockerfile hadolint scan sarif output"
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
config: .github/configs/hadolint.yaml
format: sarif
output-file: "${{ env.HADOLINT_RESULTS_FILE }}"
no-fail: true
failure-threshold: info
- name: "post: Upload results to security tab"
uses: github/codeql-action/upload-sarif@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8
with:
sarif_file: "${{ env.HADOLINT_RESULTS_FILE }}"
- name: "scan: ./Dockerfile hadolint scan tty output"
if: always()
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
config: .github/configs/hadolint.yaml
format: tty
failure-threshold: warning
shellcheck:
name: shellcheck
runs-on: ubuntu-latest
steps:
- name: "setup: checkout repo"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: "run shellcheck scan"
uses: ludeeus/action-shellcheck@master
with:
format: tty
ignore_paths:
- .github/

Check failure on line 57 in .github/workflows/linters.yml

View workflow run for this annotation

GitHub Actions / Linters

Invalid workflow file

The workflow is not valid. .github/workflows/linters.yml (Line: 57, Col: 9): A sequence was not expected
- .sources/