Skip to content

Commit 34df5e9

Browse files
authored
Add missing token permissions (#2824)
1 parent a0821cf commit 34df5e9

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,21 @@ on:
88
merge_group:
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
concurrency:
1215
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1316
cancel-in-progress: true
1417

1518
jobs:
1619
markdown-link-check:
17-
uses: ./.github/workflows/reusable-markdown-link-check.yml
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
- name: Run markdown-link-check
25+
run: make markdown-link-check
26+
env:
27+
# see https://lychee.cli.rs/troubleshooting/rate-limits/#github-rate-limiting
28+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/issue-management-feedback-label.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
issue_comment:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
issue_comment:
12+
permissions:
13+
issues: write
14+
pull-requests: write
915
if: >
1016
contains(github.event.issue.labels.*.name, 'needs author feedback') &&
1117
github.event.comment.user.login == github.event.issue.user.login

.github/workflows/reusable-markdown-link-check.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)