fix(lint.yaml): unroll pre-commit/action as it is uses actions/cache without pin #47
Workflow file for this run
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 | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4.2.2 | |
| - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
| # Unroll pre-commit/actions as currently it references actions/cache without a by-digest pin | |
| # https://github.com/pre-commit/pre-commit/issues/3672 | |
| - run: python -m pip install pre-commit | |
| shell: bash | |
| - run: python -m pip freeze --local | |
| shell: bash | |
| - run: pre-commit run --show-diff-on-failure --color=always --all-files | |
| shell: bash |