GitHub
05/28/2025, 9:03 PMpermissions block to the workflow. Since the workflow only performs linting tasks, it requires minimal permissions. The contents: read permission is sufficient for this workflow, as it allows the workflow to read repository contents without granting unnecessary write access.
The permissions block should be added at the root level of the workflow file to apply to all jobs, as there is only one job (golangci) in this workflow.
Suggested fixes powered by Copilot Autofix. Review carefully before merging.
jmpsec/osctrlGitHub
05/28/2025, 9:03 PMGitHub
05/28/2025, 10:32 PM