Skip to content

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

Merged
adubovikov merged 1 commit into
masterfrom
alert-autofix-2
Jun 4, 2026
Merged

adubovikov merged 1 commit into
masterfrom
alert-autofix-2

Conversation

@adubovikov

Copy link
Copy Markdown
Member

Potential fix for https://github.com/sipcapture/heplify/security/code-scanning/2

Add an explicit permissions block at the workflow root in .github/workflows/ci.yml, directly under on: (or before jobs:), setting least privilege for all jobs unless overridden. For this workflow, the best non-breaking minimal setting is:

  • contents: read

This preserves existing functionality (checkout and read access to repo content) while preventing unnecessary write access. No imports, methods, or dependencies are involved since this is YAML configuration only.

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>
@adubovikov
adubovikov marked this pull request as ready for review June 4, 2026 17:26
@adubovikov
adubovikov merged commit 1425cc7 into master Jun 4, 2026
7 checks passed
@adubovikov
adubovikov deleted the alert-autofix-2 branch June 4, 2026 17:26
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