-
Notifications
You must be signed in to change notification settings - Fork 1
Add AI-generated PR labeling workflow #269
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
Conversation
uses: intercom/github-action-workflows/.github/workflows/label-ai-prs.yml@main | ||
secrets: inherit |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 days ago
To fix the issue, we will add a permissions
block at the root of the workflow. This block will explicitly define the minimal permissions required for the workflow to function. Based on the context, the workflow likely needs contents: read
to access repository contents and pull-requests: write
to label pull requests. These permissions will be applied to all jobs in the workflow unless overridden by a job-specific permissions
block.
-
Copy modified lines R4-R7
@@ -3,2 +3,6 @@ | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
on: |
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.
Approved via script
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.
Approved via script
This reverts commit 1a4eeb1.
Summary
intercom/github-action-workflows
Test plan
🤖 Generated with Claude Code