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:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gitleaks:
|
hadolint:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue