Skip to content

Set agentic workflow threat detection to warning-only mode#2094

Merged
pethers merged 2 commits intomainfrom
copilot/aw-detection-runs
Apr 28, 2026
Merged

Set agentic workflow threat detection to warning-only mode#2094
pethers merged 2 commits intomainfrom
copilot/aw-detection-runs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 28, 2026

Threat detection runs were being tracked for agentic workflows, and the workflow sources needed explicit warning-only behavior for safe-output threat detection. This change makes that behavior consistent across all agentic news workflows.

  • Workflow configuration

    • Added explicit safe-outputs.threat-detection.continue-on-error: true to every news-*.md agentic workflow source.
    • Recompiled the corresponding news-*.lock.yml files so executed workflows carry the updated setting.
  • Regression coverage

    • Added a source-level guard in tests/network-diagnostics.test.ts to ensure every agentic news workflow keeps threat detection in warning-only mode.
safe-outputs:
  threat-detection:
    continue-on-error: true

Copilot AI linked an issue Apr 28, 2026 that may be closed by this pull request
@github-actions github-actions Bot added the size-xs Extra small change (< 10 lines) label Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: size-xs

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions github-actions Bot added documentation Documentation updates workflow GitHub Actions workflows ci-cd CI/CD pipeline changes testing Test coverage news News articles and content generation agentic-workflow Agentic workflow changes size-l Large change (250-1000 lines) labels Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot AI changed the title [WIP] Track detection runs for threat detection warnings and failures Set agentic workflow threat detection to warning-only mode Apr 28, 2026
Copilot AI requested a review from pethers April 28, 2026 19:08
@pethers pethers marked this pull request as ready for review April 28, 2026 19:08
Copilot AI review requested due to automatic review settings April 28, 2026 19:08
@pethers pethers merged commit a4a346e into main Apr 28, 2026
18 checks passed
@pethers pethers deleted the copilot/aw-detection-runs branch April 28, 2026 19:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the agentic news workflow frontmatter so safe-output threat detection runs in warning-only mode, and adds a regression test to prevent future drift across the repo’s compiled agentic workflows.

Changes:

  • Added safe-outputs.threat-detection.continue-on-error: true to all news-*.md agentic workflow sources.
  • Recompiled all corresponding news-*.lock.yml workflows so the executed workflows carry the new setting.
  • Added a Vitest guard asserting all agentic news workflow sources keep threat detection in warning-only mode.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/network-diagnostics.test.ts Adds a guard asserting all news workflows set threat detection to warning-only mode.
.github/workflows/news-committee-reports.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-committee-reports.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-evening-analysis.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-evening-analysis.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-interpellations.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-interpellations.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-month-ahead.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-month-ahead.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-monthly-review.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-monthly-review.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-motions.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-motions.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-propositions.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-propositions.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-realtime-monitor.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-realtime-monitor.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-translate.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-translate.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-week-ahead.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-week-ahead.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.
.github/workflows/news-weekly-review.md Adds safe-outputs.threat-detection.continue-on-error: true to the workflow source.
.github/workflows/news-weekly-review.lock.yml Recompiled workflow to include the updated safe-output threat-detection behavior.

Comment on lines +381 to +385
expect(
fm,
`${workflow} missing safe-outputs.threat-detection.continue-on-error: true`
).toMatch(/safe-outputs:[\s\S]*^\s{2}threat-detection:\n^\s{4}continue-on-error:\s+true\b/m);
});
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion is quite strict because it requires continue-on-error: true to appear immediately on the next line after threat-detection: with fixed indentation. If additional threat-detection keys are added later (still keeping continue-on-error: true), this test will fail. Consider loosening the regex to allow intervening lines, or parsing the frontmatter block line-by-line similar to the existing domain parsers.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic-workflow Agentic workflow changes ci-cd CI/CD pipeline changes documentation Documentation updates news News articles and content generation size-l Large change (250-1000 lines) size-xs Extra small change (< 10 lines) testing Test coverage workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Detection Runs

3 participants