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"' -...