Skip to content

Commit 863d23a

Browse files
committed
Declare CI workflow permissions
1 parent 10e21b2 commit 863d23a

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ["main"]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
strategy:

.github/workflows/code-coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Code Coverage
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
publish-coverage:
811
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77

88
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
99
permissions:
10-
actions: read
10+
contents: read
1111
pages: write
12-
id-token: write
12+
id-token: write # Required for actions/deploy-pages
1313

1414
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1515
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.

.github/workflows/markdown-link-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches: [ "main" ]
99
paths: "**.md"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
markdown-link-check:
1316
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)