Skip to content

Commit 69e83fa

Browse files
Set workflow permissions to resolve code-scanning alert (#47)
This resolves the alert about "workflow does not contain permissions", https://github.com/quantumlib/TypedUnits/security/code-scanning/1
2 parents 2d62170 + 3519c7c commit 69e83fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ on:
2828
# Allow manual invocation.
2929
workflow_dispatch:
3030

31+
# Set default permissions for jobs.
32+
permissions:
33+
contents: read
34+
3135
jobs:
3236
buid-and-test:
3337
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)