Skip to content

fix(daily-firewall-report): add missing create_discussion safe-output - #49460

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-daily-firewall-logs-tool-fix
Aug 1, 2026
Merged

fix(daily-firewall-report): add missing create_discussion safe-output#49460
pelikhan merged 2 commits into
mainfrom
copilot/aw-daily-firewall-logs-tool-fix

Conversation

Copilot AI commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

The daily firewall report workflow fails to publish its output because create_discussion was never declared in safe-outputs — the agent correctly generates the report but has no permitted write path to post it as a GitHub discussion.

Changes

  • daily-firewall-report.md — adds create-discussion safe-output scoped to the audits category, with close-older-discussions: true (keyed on title-prefix) to auto-retire stale reports and a 14-day expiry
safe-outputs:
  upload-asset:
    max: 3
    allowed-exts: [.png, .jpg, .jpeg, .svg]
  create-discussion:
    category: "audits"
    title-prefix: "Daily Firewall Report"
    close-older-discussions: true
    expires: 14

The agent job's discussions: read permission is unchanged — safe-outputs use a scoped App token for writes; the agent job itself never needs write access.

Add the `create-discussion` safe-output to the daily firewall report
workflow so the agent can publish the report as a GitHub discussion in
the "audits" category.

Also enables `close-older-discussions` with a matching title prefix so
stale daily reports are automatically marked as outdated, and sets a
14-day expiry. Recompiles the lock file.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing create_discussion tool for daily firewall logs workflow fix(daily-firewall-report): add missing create_discussion safe-output Aug 1, 2026
Copilot AI requested a review from pelikhan August 1, 2026 04:28
@pelikhan
pelikhan marked this pull request as ready for review August 1, 2026 04:29
Copilot AI review requested due to automatic review settings August 1, 2026 04:29
@pelikhan
pelikhan merged commit 26f9ff2 into main Aug 1, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/aw-daily-firewall-logs-tool-fix branch August 1, 2026 04:29

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

Enables the daily firewall workflow to publish its report as a GitHub discussion, resolving #49458.

Changes:

  • Adds the scoped create-discussion safe output with stale-report cleanup and 14-day expiry.
  • Regenerates the compiled workflow with the required tool, configuration, and permissions.
Show a summary per file
File Description
.github/workflows/daily-firewall-report.md Declares discussion publishing behavior.
.github/workflows/daily-firewall-report.lock.yml Applies the generated runtime configuration.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.2

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.

[aw] Daily Firewall Logs Collector and Reporter is missing required tool

3 participants