Skip to content

Conversation

javuto
Copy link
Collaborator

@javuto javuto commented May 28, 2025

Potential fix for https://github.com/jmpsec/osctrl/security/code-scanning/20

To fix the issue, we will add a permissions block at the root level of the workflow to define the minimal permissions required for all jobs. Additionally, we will add job-specific permissions blocks for jobs that require elevated permissions, such as create_release, which needs contents: write to create a release. This approach ensures that each job has only the permissions it needs, adhering to the principle of least privilege.


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>
@javuto javuto marked this pull request as ready for review May 28, 2025 12:33
@javuto javuto merged commit 1a0f772 into main May 28, 2025
53 checks passed
@javuto javuto deleted the alert-autofix-20 branch May 28, 2025 12:36
@javuto javuto added dependencies Dependencies related issues cicd CICD related issues github actions Pull requests that update GitHub Actions code labels May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cicd CICD related issues dependencies Dependencies related issues github actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant