Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@ on:
- "scripts/**"
- "gui/**"
- "assets/**"
- ".github/scripts/**"
- ".github/workflows/**"
- ".gitattributes"
- ".npmignore"
- "package.json"
- "bun.lock"
- "tsconfig.json"
- "README.md"
- "LICENSE"
- ".github/workflows/ci.yml"
- ".github/workflows/release.yml"
- ".github/workflows/enforce-pr-target.yml"
- ".github/workflows/stale-needs-info.yml"
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -180,17 +178,15 @@ jobs:
- 'scripts/**'
- 'gui/**'
- 'assets/**'
- '.github/scripts/**'
- '.github/workflows/**'
- '.gitattributes'
- '.npmignore'
- 'package.json'
- 'bun.lock'
- 'tsconfig.json'
- 'README.md'
- 'LICENSE'
- '.github/workflows/ci.yml'
- '.github/workflows/release.yml'
- '.github/workflows/enforce-pr-target.yml'
- '.github/workflows/stale-needs-info.yml'
gui:
- 'gui/**'
# Everything that ends up inside `npm pack`, or that decides what
Expand Down
9 changes: 4 additions & 5 deletions tests/ci-workflows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,12 @@ describe("GitHub Actions hardening", () => {

// The push trigger and pull-request `changes` job share one expensive-CI
// allowlist. PRs always create the workflow and aggregate check; this list
// decides whether the costly jobs run. Pin the entire list on both paths.
// decides whether the costly jobs run. Pin the entire list on both paths,
// including every script and workflow used by repository automation.
const ciPaths = [
".gitattributes",
".github/workflows/ci.yml",
".github/workflows/enforce-pr-target.yml",
".github/workflows/release.yml",
".github/workflows/stale-needs-info.yml",
".github/scripts/**",
".github/workflows/**",
".npmignore",
"LICENSE",
"README.md",
Expand Down
Loading