Skip to content

Commit f24f37a

Browse files
committed
Add packages:read to permissions
1 parent 032e48f commit f24f37a

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.github/actions/build-libraries/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
@@ -17,7 +20,7 @@ runs:
1720
- name: Npm install
1821
working-directory: .
1922
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
2124
run: npm ci
2225
shell: bash
2326

.github/actions/build-proxies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ runs:
5555
- name: Npm install
5656
working-directory: .
5757
env:
58-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
5959
run: npm ci
6060
shell: bash
6161

.github/actions/build-server/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
@@ -17,7 +20,7 @@ runs:
1720
- name: Npm install
1821
working-directory: .
1922
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
2124
run: npm ci
2225
shell: bash
2326

.github/workflows/manual-proxy-environment-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121

2222
permissions:
2323
contents: read
24+
packages: read
2425

2526
jobs:
2627
deploy-environment:

.github/workflows/stage-2-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ env:
3939
permissions:
4040
id-token: write # This is required for requesting the JWT
4141
contents: read # This is required for actions/checkout
42+
packages: read # This is required for downloading from GitHub Package Registry
4243

4344
jobs:
4445
check-generated-dependencies:

.github/workflows/stage-3-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ on:
3939
permissions:
4040
id-token: write # This is required for requesting the JWT
4141
contents: read # This is required for actions/checkout
42+
packages: read # This is required for downloading from GitHub Package Registry
43+
4244
jobs:
4345
artefact-jekyll-docs:
4446
name: "Build Docs"

0 commit comments

Comments
 (0)