cc
This commit is contained in:
parent
98db81c6a5
commit
6469034dfa
2 changed files with 13 additions and 14 deletions
|
@ -5,7 +5,7 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
gitleaks:
|
||||
hadolint:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
@ -5,17 +5,16 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
gitleaks:
|
||||
shellcheck:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run shellcheck
|
||||
uses: docker://koalaman/shellcheck-alpine:v0.10.0
|
||||
run: |
|
||||
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
|
||||
- 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: |
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue