Skip to content

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

Merged
codinglombok merged 4 commits into
mainfrom
alert-autofix-19
Aug 24, 2026
Merged

Potential fix for code scanning alert no. 19: Workflow does not contain permissions#28
codinglombok merged 4 commits into
mainfrom
alert-autofix-19

Conversation

@codinglombok

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/codinglombok/LombokCSS/security/code-scanning/19

Add an explicit permissions block to the build job in .github/workflows/publish-packages.yml, directly under runs-on, with least privilege required for that job.
For this specific job, the best minimal non-breaking setting is:

  • contents: read

This keeps behavior unchanged (checkout and build still work) while removing reliance on external defaults. No new imports, methods, or dependencies are needed since this is YAML configuration only.

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>
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the ci label Aug 24, 2026
Comment thread .github/workflows/publish-packages.yml Fixed
@codinglombok
codinglombok marked this pull request as ready for review August 24, 2026 03:19
@codinglombok
codinglombok merged commit b3483b7 into main Aug 24, 2026
28 checks passed
@codinglombok
codinglombok deleted the alert-autofix-19 branch August 24, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants