Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 80 additions & 54 deletions .github/workflows/agentics-maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.83.1). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
# / _ \ | | (_)
# | |_| | __ _ ___ _ __ | |_ _ ___
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
# | | | | (_| | __/ | | | |_| | (__
# | | | | (_| | __/ | | | |_| | (__
# \_| |_/\__, |\___|_| |_|\__|_|\___|
# __/ |
# _ _ |___/
# _ _ |___/
# | | | | / _| |
# | | | | ___ _ __ _ __| |_| | _____ ____
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
#
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.79.6). DO NOT EDIT.
#
# To regenerate this workflow, run:
# gh aw compile
# Not all edits will cause changes to this file.
#
# For more information: https://github.github.com/gh-aw/introduction/overview/
#
# Alternative regeneration methods:
# make recompile
#
# Or use the gh-aw CLI directly:
# ./gh-aw compile --validate --verbose
#
# The workflow is generated when any workflow uses the 'expires' field
# in create-discussions, create-issues, or create-pull-request safe-outputs configuration.
# Schedule frequency is automatically determined by the shortest expiration time.
# This file defines the generated agentic maintenance workflow for this repository.
# It runs scheduled cleanup for expiring safe outputs and supports manual maintenance operations.
#
# This workflow is generated automatically when workflows use expiring safe outputs
# or when repository maintenance features are enabled in .github/workflows/aw.json.
#
# To disable maintenance workflow generation, set in .github/workflows/aw.json:
# {"maintenance": false}
#
# Agentic maintenance docs:
# https://github.github.com/gh-aw/reference/ephemerals/#manual-maintenance-operations
#
name: Agentic Maintenance

Expand Down Expand Up @@ -84,16 +87,14 @@
permissions: {}

jobs:
close-expired-entities:
close-expired-discussions:
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
runs-on: ubuntu-slim
permissions:
discussions: write
issues: write
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -105,6 +106,16 @@
setupGlobals(core, github, context, exec, io, getOctokit);
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_discussions.cjs');
await main();
close-expired-issues:
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
runs-on: ubuntu-slim
permissions:
issues: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

- name: Close expired issues
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -114,6 +125,16 @@
setupGlobals(core, github, context, exec, io, getOctokit);
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_issues.cjs');
await main();
close-expired-pull-requests:
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
runs-on: ubuntu-slim
permissions:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

- name: Close expired pull requests
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -131,7 +152,7 @@
actions: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -155,12 +176,12 @@
operation: ${{ steps.record.outputs.operation }}
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -175,9 +196,9 @@
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.79.6
uses: github/gh-aw-actions/setup-cli@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
version: v0.79.6
version: v0.83.1

- name: Run operation
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -195,7 +216,9 @@

- name: Record outputs
id: record
run: echo "operation=${{ inputs.operation }}" >> "$GITHUB_OUTPUT"
env:
GH_AW_OPERATION: ${{ inputs.operation }}
run: echo "operation=$GH_AW_OPERATION" >> "$GITHUB_OUTPUT"

update_pull_request_branches:
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'update_pull_request_branches' && (!(github.event.repository.fork)) }}
Expand All @@ -205,7 +228,7 @@
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -244,14 +267,15 @@
run_url: ${{ steps.record.outputs.run_url }}
steps:
- name: Checkout actions folder
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
sparse-checkout: |
actions
clean: false
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -280,7 +304,9 @@

- name: Record outputs
id: record
run: echo "run_url=${{ inputs.run_url }}" >> "$GITHUB_OUTPUT"
env:
GH_AW_RUN_URL: ${{ inputs.run_url }}
run: echo "run_url=$GH_AW_RUN_URL" >> "$GITHUB_OUTPUT"

create_labels:
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'create_labels' && (!(github.event.repository.fork)) }}
Expand All @@ -290,12 +316,12 @@
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -310,9 +336,9 @@
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.79.6
uses: github/gh-aw-actions/setup-cli@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
version: v0.79.6
version: v0.83.1

- name: Create missing labels
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -336,12 +362,12 @@
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -356,13 +382,13 @@
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.79.6
uses: github/gh-aw-actions/setup-cli@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
version: v0.79.6
version: v0.83.1

- name: Restore activity report logs cache
id: activity_report_logs_cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.cache/gh-aw/activity-report-logs
key: ${{ runner.os }}-activity-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
Expand All @@ -377,16 +403,16 @@
GH_AW_CMD_PREFIX: gh aw
run: |
${GH_AW_CMD_PREFIX} logs \
--repo "${{ github.repository }}" \
--repo "$GITHUB_REPOSITORY" \
--start-date -1w \
--count 100 \
--count 500 \
--output ./.cache/gh-aw/activity-report-logs \
--format markdown \
> ./.cache/gh-aw/activity-report-logs/report.md
--report-file ./.cache/gh-aw/activity-report-logs/report.md

- name: Save activity report logs cache
if: ${{ always() }}
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.cache/gh-aw/activity-report-logs
key: ${{ steps.activity_report_logs_cache.outputs.cache-primary-key }}
Expand Down Expand Up @@ -441,12 +467,12 @@
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -461,13 +487,13 @@
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.79.6
uses: github/gh-aw-actions/setup-cli@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
version: v0.79.6
version: v0.83.1

- name: Restore forecast report logs cache
id: forecast_report_logs_cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
Expand All @@ -486,7 +512,7 @@
run: |
mkdir -p ./.cache/gh-aw/forecast
set +e
${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
${GH_AW_CMD_PREFIX} forecast --repo "$GITHUB_REPOSITORY" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
forecast_exit_code=$?
set -e
if [ "${forecast_exit_code}" -eq 124 ]; then
Expand All @@ -513,7 +539,7 @@

- name: Save forecast report logs cache
if: ${{ always() }}
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./.github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
Expand All @@ -538,7 +564,7 @@
issues: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -570,12 +596,12 @@
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@v0.79.6
uses: github/gh-aw-actions/setup@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -590,9 +616,9 @@
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.79.6
uses: github/gh-aw-actions/setup-cli@v0.83.1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
version: v0.79.6
version: v0.83.1

- name: Validate workflows and file issue on findings
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down
Loading
Loading