Skip to content

Potential fix for code scanning alerts no. 19-20-21: Workflow does not contain permissions#8

Merged
AntoineBuirey merged 2 commits intomainfrom
alert-autofix-19-20-21
Sep 11, 2025
Merged

Potential fix for code scanning alerts no. 19-20-21: Workflow does not contain permissions#8
AntoineBuirey merged 2 commits intomainfrom
alert-autofix-19-20-21

Conversation

@AntoineBuirey
Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/T0ine34/forge-server-manager/security/code-scanning/21

To fix the issue, we will add a permissions block at the root of the workflow to define the least privileges required for all jobs. Based on the workflow's actions, the following permissions are needed:

  • contents: read for accessing repository contents.
  • packages: read for downloading artifacts.
  • contents: write for uploading release assets.

This ensures that the workflow has only the permissions it needs and no more.


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>
@AntoineBuirey AntoineBuirey changed the title Potential fix for code scanning alert no. 21: Workflow does not contain permissions Potential fix for code scanning alerts no. 19-20-21: Workflow does not contain permissions May 21, 2025
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@AntoineBuirey AntoineBuirey self-assigned this May 21, 2025
@AntoineBuirey AntoineBuirey marked this pull request as ready for review September 11, 2025 07:51
@AntoineBuirey AntoineBuirey merged commit ec7dff2 into main Sep 11, 2025
6 checks passed
@AntoineBuirey AntoineBuirey deleted the alert-autofix-19-20-21 branch September 11, 2025 07:51
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