5
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2025-11-13 13:33:45 +00:00
pre-commit-action/.github/workflows/main.yml
Edgar Ramírez-Mondragón 89e11bc533
Pin actions/cache
GitHub recently added support for requiring actions to be pinned to a
full-length commit SHA[^1].

Their changelog doesn't mention that composite actions also fail if
their own actions are not pinned, which is the case for this project.

Hope this makes sense. I didn't bump the versions, just added the commit
SHAs, using `pinact run`.

[^1]: https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions/
2025-09-03 22:41:01 -06:00

13 lines
319 B
YAML

on:
pull_request:
push:
branches: [main, test-me-*]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3.1.4
- name: self test action
uses: ./