Skip to content

Commit 37b9a01

Browse files
committed
[nrf noup] ci: add default permissions
Scanners report these as missing so lets add them. Signed-off-by: Kari Hamalainen <[email protected]>
1 parent ccefb2a commit 37b9a01

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/commit-tags.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
milestoned, demilestoned, assigned, unassigned, ready_for_review,
77
review_requested]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
commit_tags:
1114
runs-on: ubuntu-22.04
@@ -16,7 +19,7 @@ jobs:
1619
echo "$HOME/.local/bin" >> $GITHUB_PATH
1720
1821
- name: Checkout the code
19-
uses: actions/checkout@v3
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2023
with:
2124
ref: ${{ github.event.pull_request.head.sha }}
2225
fetch-depth: 0

.github/workflows/manifest-PR.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
810

911
jobs:
1012
call-manifest-pr-action:

0 commit comments

Comments
 (0)