Skip to content

Conversation

@cuioss-oliver
Copy link
Collaborator

Summary

  • Replace secrets: inherit with explicit secret lists to satisfy SonarCloud security hotspot rule githubactions:S7635 (principle of least privilege)
  • maven.yml: passes only SONAR_TOKEN, OSS_SONATYPE_USERNAME, OSS_SONATYPE_PASSWORD, GPG_PRIVATE_KEY, GPG_PASSPHRASE
  • release.yml: passes only RELEASE_APP_ID, RELEASE_APP_PRIVATE_KEY, OSS_SONATYPE_*, GPG_*, PAGES_DEPLOY_TOKEN
  • dependency-review.yml: removed secrets: inherit (workflow uses no secrets)
  • scorecards.yml: removed secrets: inherit (workflow uses no secrets)

Test plan

  • Verify build / build (21), build / build (25), build / sonar-build pass (secrets correctly forwarded)
  • Verify SonarCloud security hotspots are resolved after merge

🤖 Generated with Claude Code

Replace `secrets: inherit` with explicit secret lists per workflow
to satisfy SonarCloud rule githubactions:S7635 (least privilege).

- maven.yml: pass only SONAR_TOKEN, OSS_SONATYPE_*, GPG_*
- release.yml: pass only RELEASE_APP_*, OSS_SONATYPE_*, GPG_*,
  PAGES_DEPLOY_TOKEN
- dependency-review.yml: remove secrets (uses none)
- scorecards.yml: remove secrets (uses none)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cuioss-oliver cuioss-oliver merged commit 6f212f6 into main Feb 3, 2026
7 checks passed
@cuioss-oliver cuioss-oliver deleted the fix/explicit-secrets branch February 3, 2026 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.

2 participants