Skip to content

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

Merged
rikdoclo merged 1 commit into
mainfrom
alert-autofix-1
Oct 17, 2026
Merged

rikdoclo merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@rikdoclo

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/rikdoclo/wowool-java-sdk/security/code-scanning/1

Add an explicit permissions block to .github/workflows/ci.yml at the workflow root so it applies to all jobs (including build).
For this workflow, the minimal safe baseline is:

  • contents: read

This preserves existing functionality (checkout + Maven build/test/javadoc) while constraining token privileges. No imports, methods, or dependencies are involved—just YAML configuration.

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>
@rikdoclo
rikdoclo marked this pull request as ready for review October 17, 2026 16:43
@rikdoclo
rikdoclo merged commit 0aed3a3 into main Oct 17, 2026
7 checks passed
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