Skip to content

Commit 9931cf6

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 e7601e3 commit 9931cf6

9 files changed

Lines changed: 22 additions & 0 deletions

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* @Coding-Autopilot-System/core
2+
/.github/ @Coding-Autopilot-System/core

.github/workflows/autopilot-create-issue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
create-issue:
1616
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 10
1819
steps:
1920
- name: Create or update issue
2021
uses: actions/github-script@v9

.github/workflows/autopilot-docs-daily.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
docs:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 15
1718
env:
1819
ORG: ${{ vars.ORG || github.repository_owner }}
1920
GH_TOKEN: ${{ secrets.ORG_READ_TOKEN || github.token }}

.github/workflows/autopilot-operator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
operator:
1515
runs-on: [self-hosted, Windows]
16+
timeout-minutes: 15
1617
env:
1718
ORG: ${{ vars.ORG }}
1819
GH_TOKEN: ${{ secrets.ORG_AUTOPILOT_TOKEN }}

.github/workflows/autopilot-org-installer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
installer:
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 15
1617
env:
1718
ORG: ${{ vars.ORG }}
1819
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.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@v6
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
@@ -3,9 +3,14 @@ on:
33
pull_request:
44
types: ['opened', 'edited', 'reopened', 'synchronize']
55

6+
permissions:
7+
contents: read
8+
pull-requests: read
9+
610
jobs:
711
main:
812
runs-on: ubuntu-latest
13+
timeout-minutes: 10
914
steps:
1015
- uses: amannn/action-semantic-pull-request@v5
1116
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: '30 1 * * *'
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)