Skip to content

Conversation

@nicklasl
Copy link
Member

@nicklasl nicklasl commented Nov 4, 2025

Potential fix for https://github.com/spotify/confidence-resolver-rust/security/code-scanning/1

To fix this problem, an explicit permissions block should be added in the workflow file. This block limits the scope of the GITHUB_TOKEN to the minimal permissions necessary for the workflow to work—specifically, the ability to read repository contents and write to pull requests (leave comments). The best place to add this is at the root level of the YAML file, just below the workflow name field (and above on:), so the permissions apply to all jobs in the workflow unless overridden at the job level. This is a non-disruptive change and does not affect any functional logic in the workflow—just the security context it operates under.

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>
@nicklasl nicklasl changed the title Potential fix for code scanning alert no. 1: Workflow does not contain permissions ci: potential fix for code scanning alert Nov 4, 2025
@nicklasl nicklasl marked this pull request as ready for review November 4, 2025 17:52
@nicklasl nicklasl merged commit 79f48cd into main Nov 5, 2025
10 of 11 checks passed
@nicklasl nicklasl deleted the alert-autofix-1 branch November 5, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants