Skip to content

Potential fix for code scanning alert no. 13: Workflow does not contain permissions #742

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rlymbur
Copy link
Contributor

@rlymbur rlymbur commented May 23, 2025

Potential fix for https://github.com/aws/aws-application-networking-k8s/security/code-scanning/13

To fix the issue, we will add a permissions block at the root level of the workflow file. Since the workflow primarily reads repository contents and does not perform write operations, we will set contents: read as the minimal required permission. This ensures the workflow has only the permissions it needs to function correctly.

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

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@rlymbur rlymbur marked this pull request as ready for review May 23, 2025 22:02
Copy link
Contributor

@mikestvz mikestvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants