Skip to content

Commit 1598a39

Browse files
authored
add GHA permissions (#469)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->
1 parent 36ee531 commit 1598a39

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/update-security-txt.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- cron: '0 0 * 12 *'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
913
jobs:
1014
update:
1115
runs-on: ubuntu-latest
@@ -15,9 +19,9 @@ jobs:
1519
id: generate_token
1620
uses: tibdex/github-app-token@v2
1721
with:
18-
app_id: ${{ secrets.OCMBOT_APP_ID }}
19-
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
20-
22+
app_id: ${{ secrets.OCMBOT_APP_ID }}
23+
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
24+
2125
- name: Checkout repo
2226
uses: actions/checkout@v4
2327

.github/workflows/verify-markdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
paths:
88
- '**/*.md'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
check-md: # call reusable workflow from central '.github' repo
1215
uses: open-component-model/.github/.github/workflows/markdown.yml@main

0 commit comments

Comments
 (0)