Skip to content

Commit 0da7e89

Browse files
Aitomatesclaude
andcommitted
chore: add codeowners and harden workflow permissions
Enterprise governance hardening: - Add explicit /.github/ ownership to CODEOWNERS where missing. - Add top-level least-privilege permissions (default contents: read) to workflows lacking one, granting only the scopes each needs. - Add timeout-minutes to jobs missing one. YAML hardening only; no build logic, scripts, or step contents changed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 12f89cd commit 0da7e89

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
branches: [ "main", "master" ]
55
pull_request:
66
branches: [ "main", "master" ]
7+
permissions:
8+
contents: read
9+
710
jobs:
811
analyze:
912
name: Analyze
1013
runs-on: ubuntu-latest
14+
timeout-minutes: 15
1115
permissions:
1216
actions: read
1317
contents: read

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1718
steps:
1819
- uses: actions/checkout@v4
1920
- uses: actions/setup-python@v5
@@ -29,6 +30,7 @@ jobs:
2930
name: github-pages
3031
url: ${{ steps.deployment.outputs.page_url }}
3132
runs-on: ubuntu-latest
33+
timeout-minutes: 10
3234
needs: build
3335
steps:
3436
- name: Deploy to GitHub Pages

.github/workflows/pr-lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ on:
55
- opened
66
- edited
77
- synchronize
8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
812
jobs:
913
main:
1014
name: Validate PR title
1115
runs-on: ubuntu-latest
16+
timeout-minutes: 10
1217
steps:
1318
- uses: amannn/action-semantic-pull-request@v5
1419
env:

.github/workflows/stale.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
on:
33
schedule:
44
- cron: "30 1 * * *"
5+
permissions:
6+
contents: read
7+
issues: write
8+
pull-requests: write
9+
510
jobs:
611
stale:
712
runs-on: ubuntu-latest
13+
timeout-minutes: 10
814
steps:
915
- uses: actions/stale@v8
1016
with:

0 commit comments

Comments
 (0)