cc
All checks were successful
gitleaks / gitleaks (push) Successful in 2s
gitleaks / hadolint (push) Successful in 2s
gitleaks / shellcheck (push) Successful in 16s

This commit is contained in:
Michael Grote 2024-08-27 21:31:36 +02:00
parent 98db81c6a5
commit 6469034dfa
2 changed files with 13 additions and 14 deletions

View file

@ -5,7 +5,7 @@ on:
pull_request: pull_request:
jobs: jobs:
gitleaks: hadolint:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -5,17 +5,16 @@ on:
pull_request: pull_request:
jobs: jobs:
gitleaks: shellcheck:
steps: steps:
- name: Checkout code - name: Run shellcheck # https://gitea.com/gitea/act_runner/issues/189
uses: actions/checkout@v4 uses: addnab/docker-run-action@v3
with:
- name: Run shellcheck image: koalaman/shellcheck-alpine:v0.10.0
uses: docker://koalaman/shellcheck-alpine:v0.10.0 run: |
run: | find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do if echo "$line" | grep -q "shell script"; then
if echo "$line" | grep -q "shell script"; then file_path=$(echo "$line" | awk -F':' '{print $1}')
file_path=$(echo "$line" | awk -F':' '{print $1}') shellcheck "$file_path"
shellcheck "$file_path" fi
fi done
done