Skip to content

Add regression coverage for CLI strict-mode default - #54657

Merged
pelikhan merged 3 commits into
mainfrom
copilot/deep-report-audit-strict-mode-default
Aug 21, 2026
Merged

Add regression coverage for CLI strict-mode default#54657
pelikhan merged 3 commits into
mainfrom
copilot/deep-report-audit-strict-mode-default

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The CLI exposes --strict as an explicit override while workflow compilation is documented as strict by default unless frontmatter sets strict: false. This adds coverage for the ordinary CLI path to prevent that contract from regressing.

  • Strict-default regression coverage
    • Adds an integration test for a plain gh aw compile invocation.
    • Verifies a workflow with contents: write fails strict validation without passing --strict.
on: push
permissions:
  contents: write
engine: copilot

The expected diagnostic confirms strict mode rejects the write permission by default.

Copilot AI and others added 2 commits August 21, 2026 23:52
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Audit strict-mode default in regular CLI compile path Add regression coverage for CLI strict-mode default Aug 21, 2026
Copilot AI requested a review from pelikhan August 21, 2026 23:57
@pelikhan
pelikhan marked this pull request as ready for review August 21, 2026 23:58
Copilot AI balanced review requested due to automatic review settings August 21, 2026 23:58
@pelikhan
pelikhan merged commit 03f65d8 into main Aug 21, 2026
@pelikhan
pelikhan deleted the copilot/deep-report-audit-strict-mode-default branch August 21, 2026 23:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds CLI integration coverage ensuring compilation defaults to strict mode.

Changes:

  • Tests rejection of write permissions without --strict.
  • Includes unrelated generated workflow changes requiring separation or explanation.
Show a summary per file
File Description
pkg/cli/compile_permissions_integration_test.go Adds strict-default regression coverage.
.github/workflows/weekly-network-domains-audit.lock.yml Changes installer mode and detection timeout.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

touch /tmp/gh-aw/threat-detection/detection.log
- name: Install AWF binary
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.4
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.4 --rootless
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deep-report] Audit strict-mode default in regular CLI compile path (may not match schema/docs promise of true)

3 participants