FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Pin action to a commit sha by avri-schneider · Pull Request #177 · pre-commit/action · GitHub

Repository navigation

Pin action to a commit sha - #177

Closed
avri-schneider wants to merge 1 commit into
pre-commit:mainfrom
avri-schneider:main
Closed

avri-schneider wants to merge 1 commit into
pre-commit:mainfrom
avri-schneider:main

Conversation

Copy link
Copy Markdown

Some projects have security requirement that enforce pinning of actions to commit sha hashes, to protect the CI of the project from supply-chain attacks compromising the runner. In such case, only a list of allowed actions would be able to run.

To allow running 'pre-commit/action' (even when pinned to a commit sha), currently requires also allowing running actions/cache@v3 which isn't pinned to a commit sha (and poses a supply-chain risk).

This PR pins the action to the commit sha matching the v3 ref (currently v3.2.6 tag) - actions/cache@69d9d44

asottile commented Mar 1, 2023

Copy link
Copy Markdown
Member

feel free to fork if your organization requires such things -- I'm not about to update this over and over

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL