-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(ci): re-introduce pre-commit fixer workflow but limit autofixes for now #4162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(ci): re-introduce pre-commit fixer workflow but limit autofixes for now #4162
Conversation
| run-name: Apply a subset of pre-commit fixes | ||
|
|
||
| on: | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
security guardrail #1: manual workflow dispatch
| fetch-depth: 0 | ||
| persist-credentials: false | ||
|
|
||
| - name: Retrieve trusted pre-commit config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security guardrail #2 (but also limitation): don't trust the pre commit config from the PR
| env: | ||
| GITHUB_TOKEN: '' | ||
|
|
||
| - name: Run trusted pre-commit subset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guardrail #3: only run a small subset of pre-commit hooks. Things like "npm ci" have vulnerabilities. We should likely include more of our custom things here but I think like above, should use "main" as the source of truth of the hook.
|
This pull request has merge conflicts that must be resolved before it can be merged. @ashwinb please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork |
Uh oh!
There was an error while loading. Please reload this page.