Skip to content

Commit e3204a8

Browse files
committed
Set workflow permissions to resolve code-scanning alert
This resolves the alert about "workflow does not contain permissions", https://github.com/quantumlib/TypedUnits/security/code-scanning/1
1 parent 564b9dd commit e3204a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.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)