Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 50f2f6a

Browse files
set token perms
1 parent 54a1fe4 commit 50f2f6a

File tree

7 files changed

+18
-0
lines changed

7 files changed

+18
-0
lines changed

.github/workflows/latest_publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
name: Build and publish latest site
1212
runs-on: ubuntu-latest
1313
environment: production
14+
permissions:
15+
contents: read
1416
# secrets are not usable from outside ConsenSys org
1517
# The workflow will then be disabled for non ConsenSys repositories to prevent useless failure.
1618
# Restricting to refs/heads/main here to prevent workflow_dispatch to run on another branch

.github/workflows/linkcheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
name: Check links
99
runs-on: ubuntu-latest
1010
environment: no-secret
11+
permissions:
12+
contents: read
1113
steps:
1214
- name: Checkout code
1315
uses: actions/checkout@v2

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
name: Lint Code Base
99
runs-on: ubuntu-latest
1010
environment: no-secret
11+
permissions:
12+
contents: read
1113
steps:
1214
- uses: actions/checkout@v2
1315
with:

.github/workflows/pr_preview_delete.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
name: Remove PR preview from pages
1111
runs-on: ubuntu-latest
1212
environment: no-secret
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
1317
steps:
1418
- name: 'checkout code from repos'
1519
uses: actions/checkout@v2

.github/workflows/pr_preview_publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ jobs:
88
name: Build and publish PR preview
99
runs-on: ubuntu-latest
1010
environment: preview
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1115
steps:
1216
- name: checkout code from repos
1317
uses: actions/checkout@v2

.github/workflows/release_publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
name: Build and publish released site
1212
runs-on: ubuntu-latest
1313
environment: production
14+
permissions:
15+
contents: read
1416
# secrets are not usable from outside ConsenSys org
1517
# The workflow will then be disabled for non ConsenSys repositories to prevent useless failure.
1618
# Restricting to refs/heads/main here to prevent workflow_dispatch to run on another branch

.github/workflows/spelling.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
name: Vale
1313
runs-on: ubuntu-latest
1414
environment: no-secret
15+
permissions:
16+
contents: read
1517
steps:
1618
- uses: actions/checkout@v2
1719
- name: create style dir

0 commit comments

Comments
 (0)