Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Conversation

@adam-phntms
Copy link
Contributor

Potential fix for https://github.com/phantomstudios/strapi-plugin-github-publish/security/code-scanning/3

To fix the issue, we will add a permissions block at the root of the workflow file. This block will specify the least privileges required for the workflow to function correctly. Based on the provided workflow, it appears that the workflow only needs to read the repository contents (e.g., for actions/checkout) and does not require write permissions. Therefore, we will set contents: read as the permission.


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>
@adam-phntms adam-phntms marked this pull request as ready for review June 25, 2025 16:16
@adam-phntms adam-phntms requested a review from JPedersen June 25, 2025 16:16
@JPedersen JPedersen merged commit 460c973 into master Jun 25, 2025
4 checks passed
@JPedersen JPedersen deleted the alert-autofix-3 branch June 25, 2025 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants