Skip to content

Commit b538ddf

Browse files
authored
Restrict workflow permissions (#47)
1 parent 16bf19e commit b538ddf

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/main-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
name: Build

.github/workflows/pr-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
name: Build

.github/workflows/release-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ on:
77
description: The version to tag the release with, e.g., 1.2.0, 1.2.1-alpha.1
88
required: true
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
15+
permissions:
16+
contents: write # for creating the release
1217
name: Build
1318
runs-on: ubuntu-latest
1419
steps:

0 commit comments

Comments
 (0)