Skip to content

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#118

Merged
mosajjal merged 1 commit intomasterfrom
alert-autofix-5
May 13, 2025
Merged

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#118
mosajjal merged 1 commit intomasterfrom
alert-autofix-5

Conversation

@mosajjal
Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/gopacket/gopacket/security/code-scanning/5

To fix the issue, we will add a permissions block at the root of the workflow file. This block will explicitly set the permissions for the GITHUB_TOKEN to contents: read, which is sufficient for the operations performed in this workflow. This change ensures that the workflow adheres to the principle of least privilege and avoids granting unnecessary permissions.


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>
@mosajjal mosajjal marked this pull request as ready for review May 13, 2025 02:13
@mosajjal mosajjal merged commit b23ac34 into master May 13, 2025
5 checks passed
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.

1 participant