Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions - #67

Closed
morri-son wants to merge 1 commit into
mainfrom
fix-permission
Closed

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#67
morri-son wants to merge 1 commit into
mainfrom
fix-permission

Conversation

@morri-son

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/open-component-model/.github/security/code-scanning/2

To fix the issue, we will add a permissions block at the root of the workflow file. This block will explicitly define the minimal permissions required for the workflow to function correctly. Based on the workflow's operations, it needs contents: read to check out the repository and secrets: write to update the organization secret. These permissions will be explicitly set to ensure the workflow operates securely.


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>
@morri-son morri-son closed this Jul 25, 2025
@morri-son
morri-son deleted the fix-permission branch September 11, 2025 08:50
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