DEV Community
Follow
Would you block a PR that changes GitHub Actions contents permission from read to write?
A pull request increased a GitHub Actions workflow's permission from read to write for contents. Agent Gate, a CI tool, flagged this as a human decision needed, recommending a warning. The tool identified the specific file and the nature of the permission escalation. This detection did not rely on an LLM or runtime analysis of the PR code. Agent Gate utilized its default built-in policy for this finding, as no repository-specific configuration was present. The author emphasizes that a permission increase is not inherently bad but warrants review. The core question is how CI systems should handle such permission boundary changes. The current proposed default is to warn on the first occurrence and allow teams to promote it to a blocking issue after tuning. Deterministic CI evidence is seen as valuable for AI-generated PRs, as these can alter workflows and security. However, this finding extends to any PR that elevates GitHub Actions permissions. The author seeks to know if this type of alert is considered a block, a warning, or noise in other repositories. They also inquire what additional evidence would make such a finding more actionable. The provided repository is sjh9714/Agent-Gate.