From 6469034dfaf4fcfd114fa1b98b66258fe8c47fa4 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 27 Aug 2024 21:31:36 +0200 Subject: [PATCH] cc --- .gitea/workflows/hadolint.yaml | 2 +- .gitea/workflows/shellcheck.yaml | 25 ++++++++++++------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/hadolint.yaml b/.gitea/workflows/hadolint.yaml index 951598b..4fbdf6e 100644 --- a/.gitea/workflows/hadolint.yaml +++ b/.gitea/workflows/hadolint.yaml @@ -5,7 +5,7 @@ on: pull_request: jobs: - gitleaks: + hadolint: steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.gitea/workflows/shellcheck.yaml b/.gitea/workflows/shellcheck.yaml index c94406f..2afae5c 100644 --- a/.gitea/workflows/shellcheck.yaml +++ b/.gitea/workflows/shellcheck.yaml @@ -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