Skip to content

Commit e276eaf

Browse files
Potential fix for code scanning alert no. 6: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b2c89aa commit e276eaf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/sample-workflow-windows-latest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
sample:
1313
name: Open Source Static Analysis Runner
14+
permissions:
15+
contents: read
1416

1517
# OSSAR runs on windows-latest.
1618
# ubuntu-latest and macos-latest supporting coming soon

0 commit comments

Comments
 (0)