Skip to content

Gate workflow changes from forks behind committer approval #4279

@Ma77Ball

Description

@Ma77Ball

Task Summary

Forked PRs can execute arbitrary code in CI by modifying the build workflow file, since GitHub Actions runs the modified workflow on the fork's branch. This gives external contributors potential access to repository secrets and the CI environment without any maintainer review.
The current build workflow has no protection against this; any fork PR that modifies .github/workflows/github-action-build.yml will run the modified workflow immediately. This creates two problems:

Inefficiency: Since there is currently no automated trust mechanism, contributors must constantly wait for a committer to manually trigger CI runs on their PRs, leading to unnecessary back-and-forth and slowing down both contributors and committers.

Priority

P2 – Medium

Task Type

  • Code Implementation
  • Documentation
  • Refactor / Cleanup
  • Testing / QA
  • DevOps / Deployment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagePending for triaging

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions