Skip to content
Merged
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .github/workflows/advisory-uk-ai-operational-resilience.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ permissions:
issues: read
pull-requests: read
security-events: read
secret-scanning-alerts: read
vulnerability-alerts: read

engine:
Expand All @@ -75,6 +76,7 @@ run-name: "UK AI operational resilience advisory · ${{ inputs.target_repo }} ·

concurrency:
group: "${{ github.workflow }}-${{ inputs.target_repo }}"
job-discriminator: ${{ github.run_id }}
cancel-in-progress: true

tracker-id: advisory-uk-ai-operational-resilience
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/workflow-contract.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ test("enterprise defaults, budgets, timeouts, and concurrency are finite", () =>
const source = workflow(name);
assert.match(source, new RegExp(`max-ai-credits: ${limits.credits}`), name);
assert.match(source, new RegExp(`timeout-minutes: ${limits.timeout}`), name);
assert.match(source, /concurrency:\n\s+group:.*\n\s+cancel-in-progress: true/, name);
assert.match(source, /concurrency:\n\s+group:.*\n(?:\s+job-discriminator:.*\n)?\s+cancel-in-progress: true/, name);
assert.doesNotMatch(source, /^\s+(contents|actions|issues|pull-requests): write$/m, name);
if (limits.dispatchMax) {
assert.match(source, new RegExp(`dispatch_max: "${limits.dispatchMax}"`), name);
Expand Down Expand Up @@ -904,6 +904,8 @@ test("Advisory preserves UK AI guidance and human-review boundaries", () => {
assert.match(worker, /repository_metadata/);
assert.match(worker, /visibility: repositoryData\.visibility/);
assert.match(worker, /open_dependabot_alerts/);
assert.match(worker, /secret-scanning-alerts: read/);
assert.match(worker, /job-discriminator: \$\{\{ github\.run_id \}\}/);
assert.match(worker, /dependency_automation/);
assert.match(worker, /security_policy/);
assert.match(worker, /age_days: ageDays\(alert\.created_at\)/);
Expand Down
Loading