Skip to content

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

Merged
angu-software merged 1 commit into
mainfrom
alert-autofix-2
Sep 16, 2026
Merged

angu-software merged 1 commit into
mainfrom
alert-autofix-2

Conversation

@angu-software

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/angu-software/NetworkSpyKit/security/code-scanning/2

Add an explicit permissions block at the workflow root so all jobs inherit least-privilege token access. For this workflow, the best minimal setting is:

  • contents: read

This is sufficient for actions/checkout and linting a local podspec. No additional scopes are required by the shown steps.

Edit only .github/workflows/LintPodspec.yml, inserting permissions: between the on: trigger section and jobs:. No imports, methods, or dependencies 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>
@angu-software
angu-software marked this pull request as ready for review September 16, 2026 08:46
@angu-software
angu-software merged commit 94f5aa6 into main Sep 16, 2026
6 checks passed
@angu-software
angu-software deleted the alert-autofix-2 branch September 17, 2026 07:18
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