Skip to content

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

Merged
rajatgl17 merged 1 commit into
mainfrom
alert-autofix-1
Aug 11, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#3
rajatgl17 merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@rajatgl17

Copy link
Copy Markdown
Member

Potential fix for https://github.com/data-spec-labs/odcs-java-sdk/security/code-scanning/1

Add an explicit permissions block in .github/workflows/release.yml at the workflow root (right after on: section or before jobs:) so it applies to all jobs unless overridden.
The minimal least-privilege setting for this workflow is:

  • contents: read

This preserves existing functionality while ensuring GITHUB_TOKEN is not implicitly over-privileged.

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>
@rajatgl17
rajatgl17 marked this pull request as ready for review August 11, 2026 09:59
@rajatgl17
rajatgl17 merged commit 2eb1a23 into main Aug 11, 2026
4 checks passed
@sonarqubecloud

Copy link
Copy Markdown

@rajatgl17
rajatgl17 deleted the alert-autofix-1 branch August 11, 2026 10:00
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