2024-08-27 21:33:46 +02:00
|
|
|
name: linter
|
2024-08-27 21:25:50 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2024-08-27 21:33:46 +02:00
|
|
|
gitleaks:
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Run Gitleaks
|
|
|
|
uses: docker://zricethezav/gitleaks:v8.18.4
|
|
|
|
with:
|
|
|
|
args: detect --no-git --verbose --source ${{ github.workspace }}
|
|
|
|
|
|
|
|
hadolint:
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Run hadolint
|
|
|
|
uses: docker://pipelinecomponents/hadolint:0.26.4
|
|
|
|
with:
|
|
|
|
args: hadolint Dockerfile
|
|
|
|
|
2024-08-27 21:31:36 +02:00
|
|
|
shellcheck:
|
2024-08-27 21:25:50 +02:00
|
|
|
steps:
|
2024-08-27 21:31:36 +02:00
|
|
|
- name: Run shellcheck # https://gitea.com/gitea/act_runner/issues/189
|
|
|
|
uses: addnab/docker-run-action@v3
|
|
|
|
with:
|
|
|
|
image: koalaman/shellcheck-alpine:v0.10.0
|
|
|
|
run: |
|
2024-08-27 21:34:55 +02:00
|
|
|
shellcheck shell.sh
|
|
|
|
# shellcheck file2
|