You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
autofix.ci is a GitHub App and GitHub Action to fix code via CI securely.
In general, GitHub Actions triggered by pull requests from fork don't have write permission and can't access secrets, so it's hard to fix code and push commits.
To do that, you need to trigger workflows via pull_request_target or workflow_run events, but they have security risks.
autofix.ci can push commits via pull_request events and it's designed securely.
Why?
We want to format Go code by gofumpt automatically. #982 (comment)
And we also want to fix go.mod and go.sum by go mod tidy.
autofix.ci allows us to achieve this securely.
What
This issue proposes to fix pull requests automatically by autofix.ci. https://autofix.ci
What's autofix.ci?
https://autofix.ci
https://github.com/autofix-ci/action
autofix.ci is a GitHub App and GitHub Action to fix code via CI securely.
In general, GitHub Actions triggered by pull requests from fork don't have write permission and can't access secrets, so it's hard to fix code and push commits.
To do that, you need to trigger workflows via pull_request_target or workflow_run events, but they have security risks.
autofix.ci can push commits via pull_request events and it's designed securely.
Why?
We want to format Go code by gofumpt automatically. #982 (comment)
And we also want to fix go.mod and go.sum by
go mod tidy
.autofix.ci allows us to achieve this securely.
https://autofix.ci/security
Example usage of autofix.ci
I've written an example code to format changed files by gofumpt using autofix.ci:
Tasks
Alternatives
About 2 and 3, they have a security concern that malicious code can't be run via pull requests from fork.
Note
We need to install a GitHub App and trust it.
To understand autofix.ci, maybe these issues are helpful.
actions:write
, andchecks:write
? autofix-ci/action#19autofix.ci
? autofix-ci/action#20What do you think about this?
The text was updated successfully, but these errors were encountered: