diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 00000000..c65530af --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,25 @@ +name: 🚨 actionlint + +on: + push: + branches: + - long_lived/** + - main + - release/** + tags: + - "**" + pull_request: + branches: + - "**" + +permissions: + contents: read + +jobs: + actionlint: + uses: chia-network/actions/.github/workflows/reflow-actionlint.yml@main + + actionlint-local: + uses: ./.github/workflows/reflow-actionlint.yml + with: + concurrency-name: local diff --git a/.github/workflows/reflow-actionlint.yml b/.github/workflows/reflow-actionlint.yml new file mode 100644 index 00000000..7ea33c2f --- /dev/null +++ b/.github/workflows/reflow-actionlint.yml @@ -0,0 +1,36 @@ +name: reflow-actionlint.yml + +on: + workflow_call: + inputs: + concurrency-name: + default: "" + required: false + type: string + +concurrency: + group: ${{ inputs.concurrency-name }}-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow_ref, github.event.pull_request.number) || github.run_id }} + cancel-in-progress: true + +defaults: + run: + shell: bash + +permissions: + contents: read + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: actionlint + run: | + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + echo ==== shellcheck version + shellcheck --version + echo ==== actionlint version + ./actionlint --version + echo ==== running actionlint + ./actionlint -color -shellcheck shellcheck diff --git a/.github/workflows/super-linter.yaml b/.github/workflows/super-linter.yaml index 81a5b6d8..6838be2b 100644 --- a/.github/workflows/super-linter.yaml +++ b/.github/workflows/super-linter.yaml @@ -38,6 +38,6 @@ jobs: VALIDATE_JSCPD: false VALIDATE_PYTHON_PYLINT: false VALIDATE_CHECKOV: false - VALIDATE_GITHUB_ACTIONS: false # Disabled because the linter is failing with errors about parameters not existing that actually do exist + VALIDATE_GITHUB_ACTIONS: false # handled in actionlint.yml # Linting is done in test-label-conflict.yml for label-conflict action FILTER_REGEX_EXCLUDE: label-conflict/.*