Skip to content

Commit 417e1cf

Browse files
asynclizcopybara-github
authored andcommitted
chore: add explicit GitHub workflow permissions
PiperOrigin-RevId: 815915576
1 parent 5345efd commit 417e1cf

File tree

9 files changed

+35
-1
lines changed

9 files changed

+35
-1
lines changed

.github/workflows/build-catalog.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build Catalog
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build-catalog:
710
runs-on: ubuntu-latest
@@ -16,4 +19,4 @@ jobs:
1619
- run: npm ci
1720
- run: npm run build:catalog
1821
env:
19-
WIREIT_FAILURES: continue
22+
WIREIT_FAILURES: continue

.github/workflows/commitlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: commitlint
22

33
on: [pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
commitlint:
710
runs-on: ubuntu-latest

.github/workflows/firebase-hosting-merge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ name: Deploy to Firebase Hosting on release and manual
55
- published
66
workflow_dispatch:
77
# allows triggering from the gihub UI
8+
9+
permissions:
10+
contents: read
11+
812
jobs:
913
build_and_deploy:
1014
runs-on: ubuntu-latest

.github/workflows/firebase-hosting-pull-request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ name: Deploy to Firebase Hosting on PR
55
on:
66
pull_request:
77
types: [ labeled ]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
813
jobs:
914
build_and_preview:
1015
if: github.event.label.name == 'preview-catalog' && github.event.pull_request.head.repo.full_name == github.repository

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
workflow_dispatch:
77
# allows triggering from the github UI
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
check_for_changes:
1114
runs-on: ubuntu-latest

.github/workflows/publish.yml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
publish:
1013
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Tests
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest

.github/workflows/update-docs-on-main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches: main
66
workflow_dispatch:
77
# allows triggering from the github UI
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
813
jobs:
914
check-for-doc-changes:
1015
runs-on: ubuntu-latest

.github/workflows/update-size-on-main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches: main
66
workflow_dispatch:
77
# allows triggering from the github UI
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
813
jobs:
914
check-for-doc-changes:
1015
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)