ci(deps): bump chainguard/node from 1bd1aa2 to 6b02b9b
#303
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: π Lint Workflows (actionlint) | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| # β SRE Best Practice: Hemat antrean runner dengan membatalkan proses lama | |
| concurrency: | |
| group: actionlint-${{ github.ref }} | |
| cancel-in-progress: true | |
| # β PoLP: Global lockdown to read-only | |
| permissions: | |
| contents: read | |
| jobs: | |
| actionlint: | |
| runs-on: ubuntu-24.04 | |
| # Keep this name stable: repository rulesets can require this exact check. | |
| name: actionlint | |
| timeout-minutes: 5 | |
| permissions: | |
| contents: read | |
| checks: write | |
| steps: | |
| # β Hardened: SHA Pinning untuk checkout | |
| - name: Harden the runner (block unapproved egress) | |
| uses: step-security/harden-runner@b09bb98e06d4d774595224525879c09bc6e98c40 # v2.20.1 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 | |
| github.com:443 | |
| - name: Checkout Code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| # β Hardened: immutable StepSecurity-maintained actionlint wrapper | |
| - name: Run Actionlint | |
| uses: step-security/action-actionlint@c3aa382d371c6b05513ae5907d4f77713e21813c # v1.72.0 | |
| with: | |
| # `github-check` supports both pull_request and push events, so this | |
| # job exposes one stable required-check context on every protected PR. | |
| reporter: github-check | |
| tool_name: actionlint-reviewdog | |
| filter_mode: nofilter | |
| # reviewdog defaults `fail_level: none`, which means "always exit 0" β | |
| # findings would only ever appear as annotations and this job would | |
| # stay green with broken workflows. Make it an actual gate. | |
| fail_level: error | |
| # actionlint proves the workflow YAML is well-formed. It cannot prove that | |
| # the policy embedded in pr-policy.yml still decides correctly β a weakened | |
| # path classifier or a forgeable identity check is valid YAML. This runs the | |
| # real embedded program against the real PR template and asserts its | |
| # verdicts. Standard library only, so it needs no install and no addition to | |
| # the egress allowlist above. | |
| - name: Verify PR policy semantics | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| python3 scripts/test-pr-policy.py |