Skip to content

Conversation

@mhennerich
Copy link
Contributor

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

The best way to fix the problem is to add a permissions block that explicitly sets the minimum required permissions for the workflow. Since the jobs shown only check out code and upload artifacts, contents: read is sufficient and follows the principle of least privilege. The change should be made at the workflow level (top-level of the YAML), right after the name: declaration and before env: or on:, to ensure all jobs inherit these restricted permissions by default. No additional methods or tools 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