Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#30

Merged
cici merged 1 commit into
mainfrom
alert-autofix-2
Jun 23, 2026
Merged

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

Conversation

@cici

@cici cici commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/temporal-sa/temporal-java-template/security/code-scanning/2

Add explicit permissions blocks to jobs that currently lack them (quality and dependency-check) in .github/workflows/ci.yml.

Best fix without changing functionality:

  • In quality, add:
    • permissions:
      • contents: read
  • In dependency-check, add:
    • permissions:
      • contents: read

This matches the minimal required access for actions/checkout and artifact upload usage in these jobs, and avoids unnecessary write scopes. No imports, methods, or additional definitions are needed.

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>
@cici cici marked this pull request as ready for review June 23, 2026 13:13
@cici cici merged commit 5537cdc into main Jun 23, 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