Skip to content

Commit eb8e8fc

Browse files
committed
build(ci): use explicit permissions in workflows
This addresses CodeQL Rule ID actions/missing-workflow-permissions.
1 parent 46ddb29 commit eb8e8fc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "Main"
2+
permissions:
3+
contents: read
24
on:
35
push:
46
branches:

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: publish
2+
permissions:
3+
contents: read
24
on:
35
push:
46
tags:
@@ -54,6 +56,7 @@ jobs:
5456
environment: release
5557
runs-on: ubuntu-latest
5658
permissions:
59+
contents: read
5760
# IMPORTANT: this permission is mandatory for trusted publishing
5861
id-token: write
5962
steps:

0 commit comments

Comments
 (0)