Skip to content

Conversation

@mhennerich
Copy link
Contributor

Potential fix for https://github.com/analogdevicesinc/jesd-eye-scan-gtk/security/code-scanning/1

To address this issue, explicitly set a permissions block at either the root of the workflow (recommended for simple cases), or at each individual job (if different jobs have different permission requirements). For this workflow, adding permissions: contents: read at the root is sufficient, as all steps and jobs only require basic, minimal permissions—none need to write to contents, issues, or other objects. This setting will restrict the GITHUB_TOKEN’s power to the least privilege required for this workflow.

Files/regions/lines to change:

  • Edit .github/workflows/build.yml at the root, immediately after the name: field (before env:), to add:
permissions:
  contents: read

No extra imports, definitions, or methods 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>
@mhennerich mhennerich requested a review from gastmaier October 16, 2025 20:03
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