Skip to content

ci: fix permissions#993

Open
pblazej wants to merge 1 commit intomainfrom
alert-autofix-23
Open

ci: fix permissions#993
pblazej wants to merge 1 commit intomainfrom
alert-autofix-23

Conversation

@pblazej
Copy link
Copy Markdown
Contributor

@pblazej pblazej commented May 7, 2026

Potential fix for https://github.com/livekit/client-sdk-swift/security/code-scanning/23

Add an explicit permissions block at the workflow root so it applies to all jobs (including lint). The minimal safe setting here is:

  • contents: read

This preserves current functionality (actions/checkout needs read access to contents) while preventing unnecessary token write privileges.
Edit .github/workflows/cocoapods-lint.yaml near the top-level keys, ideally after concurrency (or after on) and before jobs.

No imports, methods, or dependencies are required—just YAML configuration.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@pblazej pblazej marked this pull request as ready for review May 7, 2026 10:55
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

⚠️ This PR does not contain any files in the .changes directory.

@pblazej pblazej changed the title Potential fix for code scanning alert no. 23: Workflow does not contain permissions ci: fix permissions May 7, 2026
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