Skip to content

ci: inline the pre-commit run instead of pre-commit/action - #53

Merged
aldbr merged 2 commits into
DIRACGrid:mainfrom
fstagni:inline-pre-commit
Nov 23, 2026
Merged

aldbr merged 2 commits into
DIRACGrid:mainfrom
fstagni:inline-pre-commit

Conversation

@fstagni

@fstagni fstagni commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5. Same as DIRACGrid/.github#16.

The organization action policy requires every action to be pinned to a full-length commit SHA — including transitive ones. pre-commit/action@v3.0.1 wraps actions/cache@v4 by tag, so the pre-commit job is rejected at the action-download step. Run the hooks directly instead — the wrapper only added caching.

The organization action policy requires every action to be pinned to a
full-length commit SHA - including transitive ones. pre-commit/action
wraps actions/cache@v4 by tag, so the pre-commit job is rejected at the
action-download step. Run the hooks directly instead (the wrapper only
added caching).

Part of DIRACGrid/.github#5.
Match .github#16: an unpinned 'pip install pre-commit' drifts with the
runners; pin it so the hook environments are reproducible.
@aldbr
aldbr merged commit c45ea2b into DIRACGrid:main Nov 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants