From 107b6f7d30bee273d16c79b06d7dbfea34b539da Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 20 Feb 2024 13:44:45 +1000 Subject: [PATCH] super-linter: set `VALIDATE_GITHUB_ACTIONS` to `true` Flag to enable the linting process of the GitHub Actions. Another check or test we can have. https://github.com/super-linter/super-linter?tab=readme-ov-file#configure-super-linter Lint shell script. Tested with ShellCheck https://www.shellcheck.net/ --- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/super-linter.yml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6f92b31d5..290d7e232 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: python -m pip install --upgrade pip pip install pre-commit - name: Set PY - run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV" - uses: actions/cache@v4 with: path: ~/.cache/pre-commit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11b31eddf..1d210cc79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,8 +33,8 @@ jobs: gunzip -c "$destdir/$packagename.tar.gz" | xz > "$destdir/$packagename.tar.xz" ( - cd "$destdir" - sha256sum * > .sha256 + cd "$destdir" || exit + sha256sum -- * > .sha256 mv .sha256 "$packagename.sha256" ) - name: Release diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index ed63fbe36..024687b50 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -25,6 +25,7 @@ jobs: VALIDATE_BASH: true # VALIDATE_BASH_EXEC: true # VALIDATE_EDITORCONFIG: true + VALIDATE_GITHUB_ACTIONS: true VALIDATE_GITLEAKS: true # VALIDATE_SHELL_SHFMT: true DEFAULT_BRANCH: master