Skip to content

[refactoring] Extract daily audit discussion configuration into shared component #24074

@github-actions

Description

@github-actions

Skill Overview

44 workflows share an identical safe-outputs configuration pattern for creating daily audit discussions. Extracting this into a parametrized shared component (shared/daily-audit-discussion.md) would eliminate ~8–10 lines of repetitive configuration per workflow, saving ~400 lines across the codebase and creating a single source of truth for audit discussion hygiene settings.

Current Pattern

Every affected workflow manually repeats this block:

safe-outputs:
  upload-asset:            # (some workflows include this)
  create-discussion:
    expires: 3d            # varies: 1d or 3d
    category: "audits"
    title-prefix: "[some-title] "   # varies per workflow
    max: 1
    close-older-discussions: true
  close-discussion:
    max: 10                # (some workflows include this)

Current Usage

This skill appears in the following workflows (sample):

  • agentic-observability-kit.md
  • audit-workflows.md
  • blog-auditor.md
  • claude-code-user-docs-review.md
  • copilot-agent-analysis.md
  • copilot-pr-merged-report.md
  • copilot-pr-nlp-analysis.md
  • copilot-pr-prompt-analysis.md
  • copilot-session-insights.md
  • daily-code-metrics.md
  • daily-compiler-quality.md
  • daily-copilot-token-report.md
  • daily-firewall-report.md
  • daily-integrity-analysis.md
  • daily-issues-report.md
  • daily-observability-report.md
  • daily-performance-summary.md
  • daily-regulatory.md
  • daily-secrets-analysis.md
  • daily-team-evolution-insights.md
  • deep-report.md
  • delight.md
  • developer-docs-consolidator.md
  • docs-noob-tester.md
  • example-workflow-analyzer.md
  • github-mcp-structural-analysis.md
  • github-mcp-tools-report.md
  • github-remote-mcp-auth-test.md
  • go-fan.md
  • issue-arborist.md
  • lockfile-stats.md
  • mcp-inspector.md
  • poem-bot.md
  • portfolio-analyst.md
  • prompt-clustering-analysis.md
  • repo-audit-analyzer.md
  • repository-quality-improver.md
  • safe-output-health.md
  • schema-consistency-checker.md
  • sergo.md
  • terminal-stylist.md
  • typist.md
  • weekly-issue-summary.md
  • (1 more workflow)

Proposed Shared Component

File: .github/workflows/shared/daily-audit-discussion.md

---
# Daily Audit Discussion Configuration
# Provides standardized safe-outputs config for workflows that publish daily audit discussions.
#
# Usage:
#   imports:
#     - uses: shared/daily-audit-discussion.md
#       with:
#         title-prefix: "[my-workflow] "
#         expires: 3d          # optional, default: 3d
#         upload-asset: true   # optional, default: false

import-schema:
  title-prefix:
    type: string
    required: true
    description: "Title prefix for created discussions, e.g. '[daily-report] '"
  expires:
    type: string
    default: "3d"
    description: "How long to keep discussions before expiry (e.g. 1d, 3d, 7d)"
  upload-asset:
    type: boolean
    default: false
    description: "Whether to enable asset uploads (for chart images)"

safe-outputs:
  upload-asset: $\{\{ github.aw.import-inputs.upload-asset }}
  create-discussion:
    expires: $\{\{ github.aw.import-inputs.expires }}
    category: "audits"
    title-prefix: $\{\{ github.aw.import-inputs.title-prefix }}
    max: 1
    close-older-discussions: true
  close-discussion:
    max: 10
---

Usage Example:

# In daily-secrets-analysis.md
imports:
  - uses: shared/daily-audit-discussion.md
    with:
      title-prefix: "[daily secrets] "
      expires: 3d
      upload-asset: false

Impact

  • Workflows affected: 44 workflows
  • Lines saved: ~350–440 lines (8–10 lines per workflow)
  • Maintenance benefit: A single place to update audit discussion policy (expiry, category, max) across all daily reports. No more forgetting close-older-discussions: true in new workflows.

Implementation Plan

  1. Create shared component at .github/workflows/shared/daily-audit-discussion.md
  2. Migrate high-volume workflows first (daily-* series, ~20 workflows)
  3. Migrate remaining 24 workflows
  4. Recompile all affected workflows with make recompile
  5. Test 2–3 affected workflows
  6. Update documentation

Related Analysis

This recommendation comes from the Workflow Skill Extractor analysis run on 2026-04-02. See full analysis report in the discussions for details.

Generated by Workflow Skill Extractor ·

  • expires on Apr 4, 2026, 11:40 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions