Skip to content

Commit 2abbe14

Browse files
committed
Add explicit permissions to GitHub Actions workflow
Resolves CodeQL security alert by restricting GITHUB_TOKEN to contents:read only
1 parent 2cbd967 commit 2abbe14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Sample CI
22
on: [ push, pull_request ]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
build:
69
name: Build and Test

0 commit comments

Comments
 (0)