Skip to content

Commit 9bc9067

Browse files
committed
chore(actions): Explicitly adding permissions to all workflows. (#642)
As pointed out by github security checks. (cherry picked from commit 565bfd3)
1 parent 733e09e commit 9bc9067

13 files changed

+42
-5
lines changed

.github/workflows/backport.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request_target:
55
types: ["labeled", "closed"]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
backport:
913
name: Backport PR

.github/workflows/changesets-publish-npm-packages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1414
jobs:
1515
# gets all publishable npm packages.
1616
fetch-package-info:
17+
permissions:
18+
contents: read
1719
runs-on: ubuntu-latest
1820
outputs:
1921
matrix: ${{ steps.query-packages.outputs.matrix }}

.github/workflows/healthcheck-frontend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- "SignallingWebServer/**"
1212
- "Extras/**"
1313

14+
permissions:
15+
contents: write
16+
1417
jobs:
1518
streaming-test-linux:
1619
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

.github/workflows/healthcheck-image-sfu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- ".github/workflow/healthcheck-image-sfu.yml"
88
- "SFU/**"
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build-docker-image:
1215
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

.github/workflows/healthcheck-image-wilbur.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- ".github/workflows/healthcheck-image-wilbur.yml"
88
- "SignallingWebServer/**"
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build-docker-image:
1215
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

.github/workflows/healthcheck-libraries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- "Frontend/ui-library/**"
1313
- "Frontend/implementations/typescript/**"
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
build-using-local-deps:
1720
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

.github/workflows/healthcheck-libs-with-public-deps.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
commitsha:
77
description: "Commit SHA for the release (if blank use latest on this branch)"
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
commitsha: "${{ github.event.inputs.commitsha || github.sha }}"
1114

.github/workflows/healthcheck-markdown-links.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
# schedule:
66
# - cron: '0 0 * * *'
77

8+
permissions:
9+
contents: read
10+
issues: write
11+
812
jobs:
913
linkChecker:
1014
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

.github/workflows/healthcheck-platform-scripts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- ".github/workflows/healthcheck-platform-scripts.yml"
88
- "SignallingWebServer/**"
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
run-script-linux:
1215
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

.github/workflows/healthcheck-signalling-protocol.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- "SignallingWebServer/**"
1111
- "Extras/SS_Test/**"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
signalling-protocol-test:
1518
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'

0 commit comments

Comments
 (0)