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