move shellcheck
Some checks failed
gitleaks / gitleaks (push) Failing after 3s

This commit is contained in:
Michael Grote 2024-08-27 21:25:50 +02:00
parent 19ad867896
commit 59bc18b8b9
2 changed files with 22 additions and 16 deletions

View file

@ -0,0 +1,22 @@
name: gitleaks
on:
push:
branches: [ master ]
pull_request:
jobs:
gitleaks:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run shellcheck
uses: docker://koalaman/shellcheck-alpine:v0.10.0
with:
args: |
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
file_path=$(echo "$line" | awk -F':' '{print $1}')
shellcheck "$file_path"
fi
done

View file

@ -1,16 +0,0 @@
---
steps:
shellcheck:
image: "koalaman/shellcheck-alpine:v0.10.0"
commands:
- |
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
file_path=$(echo "$line" | awk -F':' '{print $1}')
shellcheck "$file_path"
fi
done
when:
- event: [push, pull_request, cron]
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
...