Skip to content

Commit 60f4d5c

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 eb26ff1 commit 60f4d5c

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
@@ -6,10 +6,15 @@ on:
66
- edited
77
- synchronize
88

9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
913
jobs:
1014
main:
1115
name: Validate PR title
1216
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1318
steps:
1419
- uses: amannn/action-semantic-pull-request@v5
1520
env:

.github/workflows/stale.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ on:
33
schedule:
44
- cron: '0 0 * * *'
55

6+
permissions:
7+
contents: read
8+
issues: write
9+
pull-requests: write
10+
611
jobs:
712
stale:
813
runs-on: ubuntu-latest
14+
timeout-minutes: 10
915
steps:
1016
- uses: actions/stale@v8
1117
with:

0 commit comments

Comments
 (0)