Skip to content

Conversation

@twwd
Copy link
Collaborator

@twwd twwd commented Aug 27, 2025

Potential fix for https://github.com/iteratec/kcwarden/security/code-scanning/2

To fix the problem, add an explicit permissions block to the test-and-build job to restrict the GITHUB_TOKEN permissions to the minimum required. Since the job does not appear to push, write, or modify any repository resources, the minimal contents: read permission is sufficient. The change should be made under the test-and-build: job definition, at the same indentation level as runs-on. This does not affect existing functionality―the job and steps remain unchanged.

  • Add:
    permissions:
      contents: read
    immediately under:
    test-and-build:
      runs-on: ubuntu-latest

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>
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