Skip to content

Conversation

@arnested
Copy link
Member

Potential fix for https://github.com/reload/drupal-security-jira/security/code-scanning/7

The best way to fix this issue is to set a minimal permissions block for the entire workflow (at the root), unless individual jobs require specific broader permissions. For this workflow, all jobs appear to operate fine with read-only access to the repository contents—none of them require write permissions to issues, pull requests, or other resources. The recommended block is:

permissions:
  contents: read

This should be added after the name: line and before the jobs: line—i.e., on line 3. This makes the workflow explicit about its minimal required permissions and adheres to GitHub's least privilege principle.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@arnested arnested marked this pull request as ready for review August 23, 2025 20:59
@arnested arnested requested a review from a team as a code owner August 23, 2025 20:59
@arnested arnested merged commit f2151ac into v2 Aug 23, 2025
9 checks passed
@arnested arnested deleted the alert-autofix-7 branch August 23, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants