Skip to content

Commit 6d6b4ec

Browse files
authored
Set explicit workflow permissions (#13746)
1 parent 5af1e8c commit 6d6b4ec

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

ā€Ž.github/workflows/docker.ymlā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
name: Publish Docker Images
66

77
permissions:
8-
contents: read
8+
contents: read # Required for checkout only; Docker Hub push uses repository secrets.
99

1010
on:
1111
push:

ā€Ž.github/workflows/links.ymlā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
name: Check Broken links
1212

1313
permissions:
14-
contents: read
14+
contents: read # Required for checkout and authenticated link checks only.
1515

1616
on:
1717
workflow_dispatch:

ā€Ž.github/workflows/merge-main-into-prs.ymlā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name: Merge main into PRs
77

88
permissions:
9-
contents: read
9+
contents: write
1010
pull-requests: write
1111

1212
on:

ā€Ž.github/workflows/stale.ymlā€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Ultralytics šŸš€ AGPL-3.0 License - https://ultralytics.com/license
22

33
name: Close stale issues
4+
5+
permissions:
6+
issues: write
7+
pull-requests: write
8+
49
on:
510
schedule:
611
- cron: "0 0 * * *" # Runs at 00:00 UTC every day
712

813
jobs:
914
stale:
10-
permissions:
11-
issues: write
12-
pull-requests: write
1315
runs-on: ubuntu-latest
1416
steps:
1517
- uses: actions/stale@v10

0 commit comments

Comments
Ā (0)
⚔