From 59bc18b8b93b06f50e3fc3f6b460d8e5ab0a93c0 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 27 Aug 2024 21:25:50 +0200 Subject: [PATCH] move shellcheck --- .gitea/workflows/shellcheck.yaml | 22 ++++++++++++++++++++++ .woodpecker/lint.yml | 16 ---------------- 2 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 .gitea/workflows/shellcheck.yaml delete mode 100644 .woodpecker/lint.yml diff --git a/.gitea/workflows/shellcheck.yaml b/.gitea/workflows/shellcheck.yaml new file mode 100644 index 0000000..a8270a4 --- /dev/null +++ b/.gitea/workflows/shellcheck.yaml @@ -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 diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml deleted file mode 100644 index 04e5925..0000000 --- a/.woodpecker/lint.yml +++ /dev/null @@ -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"' -...