Skip to content

Configure CI workflow perms#811

Merged
tehcrashxor merged 1 commit into
masterfrom
alert-autofix-5
Jun 10, 2026
Merged

Configure CI workflow perms#811
tehcrashxor merged 1 commit into
masterfrom
alert-autofix-5

Conversation

@tehcrashxor

Copy link
Copy Markdown
Member

Potential fix for https://github.com/microsoft/PowerApps-Tooling/security/code-scanning/5

Add an explicit workflow-level permissions block in .github/workflows/CI.yml so all jobs inherit least-privilege token access unless overridden.
Best minimal fix (without changing functionality): add:

  • permissions:
    • contents: read

Place it near the top-level keys (after on: block and before jobs: is the clearest location). No imports, methods, or additional definitions 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>
@tehcrashxor tehcrashxor marked this pull request as ready for review June 10, 2026 21:09
@tehcrashxor tehcrashxor requested review from a team as code owners June 10, 2026 21:09
@tehcrashxor tehcrashxor changed the title Potential fix for code scanning alert no. 5: Workflow does not contain permissions Configure CI workflow perms Jun 10, 2026
@tehcrashxor tehcrashxor merged commit 5cab70e into master Jun 10, 2026
6 checks passed
@tehcrashxor tehcrashxor deleted the alert-autofix-5 branch June 10, 2026 21:20
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