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

CopilotAI 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: 3allowed-exts: [.png, .jpg, .jpeg, .svg]create-discussion:
category: "audits"title-prefix: "Daily Firewall Report"close-older-discussions: trueexpires: 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>
CopilotAI changed the title [WIP] Fix missing create_discussion tool for daily firewall logs workflowfix(daily-firewall-report): add missing create_discussion safe-outputAug 1, 2026
CopilotAI requested a review from pelikhanAugust 1, 2026 04:28
@pelikhan
pelikhan marked this pull request as ready for review August 1, 2026 04:29
CopilotAI review requested due to automatic review settings August 1, 2026 04:29
@pelikhan
pelikhan merged commit 26f9ff2 into mainAug 1, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/aw-daily-firewall-logs-tool-fix branch August 1, 2026 04:29

CopilotAI 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
FileDescription
.github/workflows/daily-firewall-report.mdDeclares discussion publishing behavior.
.github/workflows/daily-firewall-report.lock.ymlApplies 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

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.2

Sign up for freeto 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

@pelikhan