Skip to content

Commit 975bdaa

Browse files
authored
permissions sweep on simple workflows (#995)
Add top-level `permissions: {}` (default deny) to: - run-precommit.yml (also adds contents:read to the only job) - stale.yml (existing job-level perms unchanged) - assign-devin-prs.yml (existing job-level perms unchanged)
1 parent 78b171c commit 975bdaa

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/assign-devin-prs.yml

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

7+
permissions: {}
8+
79
jobs:
810
assign:
911
if: github.actor == 'devin-ai-integration[bot]'

.github/workflows/run-precommit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ on:
33
workflow_dispatch:
44
pull_request:
55

6+
permissions: {}
7+
68
jobs:
79
code-quality:
810
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
913
steps:
1014
- name: Checkout Elementary
1115
uses: actions/checkout@v6

.github/workflows/stale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
schedule:
44
- cron: "30 1 * * *"
55

6+
permissions: {}
7+
68
jobs:
79
close-issues:
810
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)