Skip to content

Commit a9cbdd9

Browse files
step-security-bottrask
authored andcommitted
[StepSecurity] ci: Harden GitHub Actions (open-telemetry#2803)
* [StepSecurity] ci: Harden GitHub Actions Signed-off-by: StepSecurity Bot <[email protected]> * Update .github/workflows/spell-check.yml --------- Signed-off-by: StepSecurity Bot <[email protected]> Co-authored-by: Trask Stalnaker <[email protected]>
1 parent e0f20f2 commit a9cbdd9

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

.github/workflows/issue-management-stale-action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ on:
55
# Hourly at minute 23
66
- cron: "23 * * * *"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
stale:
13+
permissions:
14+
issues: write # for actions/stale to close stale issues
15+
pull-requests: write # for actions/stale to close stale PRs
1016
runs-on: ubuntu-latest
1117
steps:
1218
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Reusable - Markdown link check
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
markdown-link-check:
811
runs-on: ubuntu-latest

.github/workflows/spell-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
merge_group:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
spelling-check:
912
runs-on: ubuntu-latest

.github/workflows/table-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
merge_group:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
table-check:
912
runs-on: ubuntu-latest

.github/workflows/toc-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
merge_group:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
toc-check:
912
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)