Skip to content

Commit adadb74

Browse files
authored
chore: add explicit workflow permissions (lerna#4229)
1 parent 58def7e commit adadb74

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ env:
1616
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1717
NX_VERBOSE_LOGGING: false
1818

19+
# Minimal permissions by default
20+
permissions:
21+
contents: read
22+
1923
jobs:
2024
main:
2125
name: Nx Cloud - Main Job

.github/workflows/other-node-versions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ env:
1616
COREPACK_ENABLE_AUTO_PIN: "0"
1717
COREPACK_ENABLE_STRICT: "0"
1818

19+
# Minimal permissions by default
20+
permissions:
21+
contents: read
22+
1923
jobs:
2024
set-node-versions:
2125
name: Set Node Versions

.github/workflows/website-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
push:
77
branches: [main]
88

9+
# Minimal permissions by default
10+
permissions:
11+
contents: read
12+
913
defaults:
1014
run:
1115
shell: bash

0 commit comments

Comments
 (0)