Skip to content

Commit a4b9d74

Browse files
committed
ci(workflows): add permissions for contents and packages in workflow files
1 parent 772f039 commit a4b9d74

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

.github/actions/setup-jlink-network/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ inputs:
1414
runs:
1515
using: 'composite'
1616
steps:
17+
- name: Login to GHCR
18+
shell: bash
19+
run: |
20+
echo "${{ github.token }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
21+
1722
- name: Pull JLink Docker image
1823
shell: bash
1924
run: |

.github/workflows/test-erase.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
- '.github/workflows/fw.*'
2525
workflow_dispatch:
2626

27+
permissions:
28+
contents: read
29+
packages: read
30+
2731
env:
2832
VNET_BASE: 192.168.3
2933
VNET_MASK: 24

.github/workflows/test-flash.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
- '.github/workflows/fw.*'
2525
workflow_dispatch:
2626

27+
permissions:
28+
contents: read
29+
packages: read
30+
2731
env:
2832
VNET_BASE: 192.168.3
2933
VNET_MASK: 24

.github/workflows/test-rtt.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
- '.github/workflows/fw.*'
2525
workflow_dispatch:
2626

27+
permissions:
28+
contents: read
29+
packages: read
30+
2731
env:
2832
VNET_BASE: 192.168.3
2933
VNET_MASK: 24

.github/workflows/test-scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
- '.github/workflows/test-scan.yml'
2323
workflow_dispatch:
2424

25+
permissions:
26+
contents: read
27+
packages: read
28+
2529
env:
2630
VNET_BASE: 192.168.3
2731
VNET_MASK: 24

0 commit comments

Comments
 (0)