Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#35

Merged
RHSplinter merged 1 commit into
mainfrom
bugfix/workflow-permissions
Oct 22, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#35
RHSplinter merged 1 commit into
mainfrom
bugfix/workflow-permissions

Conversation

@RHSplinter

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/RHSplinter/DevToolBox/security/code-scanning/1

To fix the workflow's missing permissions block, add a permissions: section with the least permissions required by all jobs. Since these jobs mostly read the repository contents and upload/download artifacts, the minimal starting set is contents: read. Add the block at the root level, below the name: and before on:—this will apply to all jobs unless overridden. No code outside the workflow file needs changes.

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>
@RHSplinter RHSplinter marked this pull request as ready for review October 22, 2025 12:38
@RHSplinter RHSplinter merged commit 998d4c2 into main Oct 22, 2025
9 checks passed
@RHSplinter RHSplinter deleted the bugfix/workflow-permissions branch October 22, 2025 12:40
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