|
|
|
@ -52,11 +52,11 @@ jobs:
|
|
|
|
comment_repo: ""
|
|
|
|
comment_repo: ""
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Setup Scripts
|
|
|
|
- name: Setup Scripts
|
|
|
|
uses: github/gh-aw/actions/setup@eb184b62aad2fa8fda1af7c372d51950e2e21c56 # v0.42.8
|
|
|
|
uses: github/gh-aw/actions/setup@8e30bcd8897f5047051fa3971188e1dd4cdb23cf # v0.88.2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
- name: Check workflow file timestamps
|
|
|
|
- name: Check workflow file timestamps
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_WORKFLOW_FILE: "daily-repo-status.lock.yml"
|
|
|
|
GH_AW_WORKFLOW_FILE: "daily-repo-status.lock.yml"
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -91,11 +91,11 @@ jobs:
|
|
|
|
secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }}
|
|
|
|
secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Setup Scripts
|
|
|
|
- name: Setup Scripts
|
|
|
|
uses: github/gh-aw/actions/setup@eb184b62aad2fa8fda1af7c372d51950e2e21c56 # v0.42.8
|
|
|
|
uses: github/gh-aw/actions/setup@8e30bcd8897f5047051fa3971188e1dd4cdb23cf # v0.88.2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
- name: Checkout .github and .agents folders
|
|
|
|
- name: Checkout .github and .agents folders
|
|
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
sparse-checkout: |
|
|
|
|
sparse-checkout: |
|
|
|
|
.github
|
|
|
|
.github
|
|
|
|
@ -119,7 +119,7 @@ jobs:
|
|
|
|
id: checkout-pr
|
|
|
|
id: checkout-pr
|
|
|
|
if: |
|
|
|
|
if: |
|
|
|
|
github.event.pull_request
|
|
|
|
github.event.pull_request
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
|
|
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -143,7 +143,7 @@ jobs:
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
TOKEN_CHECK: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}
|
|
|
|
TOKEN_CHECK: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}
|
|
|
|
if: env.TOKEN_CHECK != ''
|
|
|
|
if: env.TOKEN_CHECK != ''
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
const determineAutomaticLockdown = require('/opt/gh-aw/actions/determine_automatic_lockdown.cjs');
|
|
|
|
const determineAutomaticLockdown = require('/opt/gh-aw/actions/determine_automatic_lockdown.cjs');
|
|
|
|
@ -438,7 +438,7 @@ jobs:
|
|
|
|
MCPCONFIG_EOF
|
|
|
|
MCPCONFIG_EOF
|
|
|
|
- name: Generate agentic run info
|
|
|
|
- name: Generate agentic run info
|
|
|
|
id: generate_aw_info
|
|
|
|
id: generate_aw_info
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
const fs = require('fs');
|
|
|
|
const fs = require('fs');
|
|
|
|
@ -482,7 +482,7 @@ jobs:
|
|
|
|
// Set model as output for reuse in other steps/jobs
|
|
|
|
// Set model as output for reuse in other steps/jobs
|
|
|
|
core.setOutput('model', awInfo.model);
|
|
|
|
core.setOutput('model', awInfo.model);
|
|
|
|
- name: Generate workflow overview
|
|
|
|
- name: Generate workflow overview
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
const { generateWorkflowOverview } = require('/opt/gh-aw/actions/generate_workflow_overview.cjs');
|
|
|
|
const { generateWorkflowOverview } = require('/opt/gh-aw/actions/generate_workflow_overview.cjs');
|
|
|
|
@ -558,7 +558,7 @@ jobs:
|
|
|
|
{{#runtime-import .github/workflows/daily-repo-status.md}}
|
|
|
|
{{#runtime-import .github/workflows/daily-repo-status.md}}
|
|
|
|
PROMPT_EOF
|
|
|
|
PROMPT_EOF
|
|
|
|
- name: Substitute placeholders
|
|
|
|
- name: Substitute placeholders
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
|
|
|
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
|
|
|
GH_AW_GITHUB_ACTOR: ${{ github.actor }}
|
|
|
|
GH_AW_GITHUB_ACTOR: ${{ github.actor }}
|
|
|
|
@ -588,7 +588,7 @@ jobs:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
- name: Interpolate variables and render templates
|
|
|
|
- name: Interpolate variables and render templates
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
|
|
|
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -654,7 +654,7 @@ jobs:
|
|
|
|
bash /opt/gh-aw/actions/stop_mcp_gateway.sh "$GATEWAY_PID"
|
|
|
|
bash /opt/gh-aw/actions/stop_mcp_gateway.sh "$GATEWAY_PID"
|
|
|
|
- name: Redact secrets in logs
|
|
|
|
- name: Redact secrets in logs
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
|
|
@ -669,14 +669,14 @@ jobs:
|
|
|
|
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload Safe Outputs
|
|
|
|
- name: Upload Safe Outputs
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: safe-output
|
|
|
|
name: safe-output
|
|
|
|
path: ${{ env.GH_AW_SAFE_OUTPUTS }}
|
|
|
|
path: ${{ env.GH_AW_SAFE_OUTPUTS }}
|
|
|
|
if-no-files-found: warn
|
|
|
|
if-no-files-found: warn
|
|
|
|
- name: Ingest agent output
|
|
|
|
- name: Ingest agent output
|
|
|
|
id: collect_output
|
|
|
|
id: collect_output
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_SAFE_OUTPUTS: ${{ env.GH_AW_SAFE_OUTPUTS }}
|
|
|
|
GH_AW_SAFE_OUTPUTS: ${{ env.GH_AW_SAFE_OUTPUTS }}
|
|
|
|
GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com"
|
|
|
|
GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com"
|
|
|
|
@ -690,13 +690,13 @@ jobs:
|
|
|
|
await main();
|
|
|
|
await main();
|
|
|
|
- name: Upload sanitized agent output
|
|
|
|
- name: Upload sanitized agent output
|
|
|
|
if: always() && env.GH_AW_AGENT_OUTPUT
|
|
|
|
if: always() && env.GH_AW_AGENT_OUTPUT
|
|
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent-output
|
|
|
|
name: agent-output
|
|
|
|
path: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
path: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
if-no-files-found: warn
|
|
|
|
if-no-files-found: warn
|
|
|
|
- name: Upload engine output files
|
|
|
|
- name: Upload engine output files
|
|
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent_outputs
|
|
|
|
name: agent_outputs
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
@ -705,7 +705,7 @@ jobs:
|
|
|
|
if-no-files-found: ignore
|
|
|
|
if-no-files-found: ignore
|
|
|
|
- name: Parse agent logs for step summary
|
|
|
|
- name: Parse agent logs for step summary
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_AGENT_OUTPUT: /tmp/gh-aw/sandbox/agent/logs/
|
|
|
|
GH_AW_AGENT_OUTPUT: /tmp/gh-aw/sandbox/agent/logs/
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -716,7 +716,7 @@ jobs:
|
|
|
|
await main();
|
|
|
|
await main();
|
|
|
|
- name: Parse MCP gateway logs for step summary
|
|
|
|
- name: Parse MCP gateway logs for step summary
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
|
|
@ -736,7 +736,7 @@ jobs:
|
|
|
|
- name: Upload agent artifacts
|
|
|
|
- name: Upload agent artifacts
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|
continue-on-error: true
|
|
|
|
continue-on-error: true
|
|
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent-artifacts
|
|
|
|
name: agent-artifacts
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
@ -767,7 +767,7 @@ jobs:
|
|
|
|
total_count: ${{ steps.missing_tool.outputs.total_count }}
|
|
|
|
total_count: ${{ steps.missing_tool.outputs.total_count }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Setup Scripts
|
|
|
|
- name: Setup Scripts
|
|
|
|
uses: github/gh-aw/actions/setup@eb184b62aad2fa8fda1af7c372d51950e2e21c56 # v0.42.8
|
|
|
|
uses: github/gh-aw/actions/setup@8e30bcd8897f5047051fa3971188e1dd4cdb23cf # v0.88.2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
- name: Debug job inputs
|
|
|
|
- name: Debug job inputs
|
|
|
|
@ -783,7 +783,7 @@ jobs:
|
|
|
|
echo "Agent Conclusion: $AGENT_CONCLUSION"
|
|
|
|
echo "Agent Conclusion: $AGENT_CONCLUSION"
|
|
|
|
- name: Download agent output artifact
|
|
|
|
- name: Download agent output artifact
|
|
|
|
continue-on-error: true
|
|
|
|
continue-on-error: true
|
|
|
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
|
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent-output
|
|
|
|
name: agent-output
|
|
|
|
path: /tmp/gh-aw/safeoutputs/
|
|
|
|
path: /tmp/gh-aw/safeoutputs/
|
|
|
|
@ -794,7 +794,7 @@ jobs:
|
|
|
|
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/safeoutputs/agent_output.json" >> "$GITHUB_ENV"
|
|
|
|
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/safeoutputs/agent_output.json" >> "$GITHUB_ENV"
|
|
|
|
- name: Process No-Op Messages
|
|
|
|
- name: Process No-Op Messages
|
|
|
|
id: noop
|
|
|
|
id: noop
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_NOOP_MAX: 1
|
|
|
|
GH_AW_NOOP_MAX: 1
|
|
|
|
@ -810,7 +810,7 @@ jobs:
|
|
|
|
await main();
|
|
|
|
await main();
|
|
|
|
- name: Record Missing Tool
|
|
|
|
- name: Record Missing Tool
|
|
|
|
id: missing_tool
|
|
|
|
id: missing_tool
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_WORKFLOW_NAME: "Daily Repo Status"
|
|
|
|
GH_AW_WORKFLOW_NAME: "Daily Repo Status"
|
|
|
|
@ -825,7 +825,7 @@ jobs:
|
|
|
|
await main();
|
|
|
|
await main();
|
|
|
|
- name: Handle Agent Failure
|
|
|
|
- name: Handle Agent Failure
|
|
|
|
id: handle_agent_failure
|
|
|
|
id: handle_agent_failure
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_WORKFLOW_NAME: "Daily Repo Status"
|
|
|
|
GH_AW_WORKFLOW_NAME: "Daily Repo Status"
|
|
|
|
@ -844,7 +844,7 @@ jobs:
|
|
|
|
await main();
|
|
|
|
await main();
|
|
|
|
- name: Update reaction comment with completion status
|
|
|
|
- name: Update reaction comment with completion status
|
|
|
|
id: conclusion
|
|
|
|
id: conclusion
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }}
|
|
|
|
GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }}
|
|
|
|
@ -871,18 +871,18 @@ jobs:
|
|
|
|
success: ${{ steps.parse_results.outputs.success }}
|
|
|
|
success: ${{ steps.parse_results.outputs.success }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Setup Scripts
|
|
|
|
- name: Setup Scripts
|
|
|
|
uses: github/gh-aw/actions/setup@eb184b62aad2fa8fda1af7c372d51950e2e21c56 # v0.42.8
|
|
|
|
uses: github/gh-aw/actions/setup@8e30bcd8897f5047051fa3971188e1dd4cdb23cf # v0.88.2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
- name: Download agent artifacts
|
|
|
|
- name: Download agent artifacts
|
|
|
|
continue-on-error: true
|
|
|
|
continue-on-error: true
|
|
|
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
|
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent-artifacts
|
|
|
|
name: agent-artifacts
|
|
|
|
path: /tmp/gh-aw/threat-detection/
|
|
|
|
path: /tmp/gh-aw/threat-detection/
|
|
|
|
- name: Download agent output artifact
|
|
|
|
- name: Download agent output artifact
|
|
|
|
continue-on-error: true
|
|
|
|
continue-on-error: true
|
|
|
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
|
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent-output
|
|
|
|
name: agent-output
|
|
|
|
path: /tmp/gh-aw/threat-detection/
|
|
|
|
path: /tmp/gh-aw/threat-detection/
|
|
|
|
@ -892,7 +892,7 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
echo "Agent output-types: $AGENT_OUTPUT_TYPES"
|
|
|
|
echo "Agent output-types: $AGENT_OUTPUT_TYPES"
|
|
|
|
- name: Setup threat detection
|
|
|
|
- name: Setup threat detection
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
WORKFLOW_NAME: "Daily Repo Status"
|
|
|
|
WORKFLOW_NAME: "Daily Repo Status"
|
|
|
|
WORKFLOW_DESCRIPTION: "This workflow creates daily repo status reports. It gathers recent repository\nactivity (issues, PRs, discussions, releases, code changes) and generates\nengaging GitHub issues with productivity insights, community highlights,\nand project recommendations."
|
|
|
|
WORKFLOW_DESCRIPTION: "This workflow creates daily repo status reports. It gathers recent repository\nactivity (issues, PRs, discussions, releases, code changes) and generates\nengaging GitHub issues with productivity insights, community highlights,\nand project recommendations."
|
|
|
|
@ -945,7 +945,7 @@ jobs:
|
|
|
|
XDG_CONFIG_HOME: /home/runner
|
|
|
|
XDG_CONFIG_HOME: /home/runner
|
|
|
|
- name: Parse threat detection results
|
|
|
|
- name: Parse threat detection results
|
|
|
|
id: parse_results
|
|
|
|
id: parse_results
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
|
|
@ -954,7 +954,7 @@ jobs:
|
|
|
|
await main();
|
|
|
|
await main();
|
|
|
|
- name: Upload threat detection log
|
|
|
|
- name: Upload threat detection log
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: threat-detection.log
|
|
|
|
name: threat-detection.log
|
|
|
|
path: /tmp/gh-aw/threat-detection/detection.log
|
|
|
|
path: /tmp/gh-aw/threat-detection/detection.log
|
|
|
|
@ -982,12 +982,12 @@ jobs:
|
|
|
|
process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}
|
|
|
|
process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Setup Scripts
|
|
|
|
- name: Setup Scripts
|
|
|
|
uses: github/gh-aw/actions/setup@eb184b62aad2fa8fda1af7c372d51950e2e21c56 # v0.42.8
|
|
|
|
uses: github/gh-aw/actions/setup@8e30bcd8897f5047051fa3971188e1dd4cdb23cf # v0.88.2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
destination: /opt/gh-aw/actions
|
|
|
|
- name: Download agent output artifact
|
|
|
|
- name: Download agent output artifact
|
|
|
|
continue-on-error: true
|
|
|
|
continue-on-error: true
|
|
|
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
|
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: agent-output
|
|
|
|
name: agent-output
|
|
|
|
path: /tmp/gh-aw/safeoutputs/
|
|
|
|
path: /tmp/gh-aw/safeoutputs/
|
|
|
|
@ -998,7 +998,7 @@ jobs:
|
|
|
|
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/safeoutputs/agent_output.json" >> "$GITHUB_ENV"
|
|
|
|
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/safeoutputs/agent_output.json" >> "$GITHUB_ENV"
|
|
|
|
- name: Process Safe Outputs
|
|
|
|
- name: Process Safe Outputs
|
|
|
|
id: process_safe_outputs
|
|
|
|
id: process_safe_outputs
|
|
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
|
|
|
|
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"create_issue\":{\"labels\":[\"report\",\"daily-status\"],\"max\":1,\"title_prefix\":\"[repo-status] \"},\"missing_data\":{},\"missing_tool\":{}}"
|
|
|
|
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"create_issue\":{\"labels\":[\"report\",\"daily-status\"],\"max\":1,\"title_prefix\":\"[repo-status] \"},\"missing_data\":{},\"missing_tool\":{}}"
|
|
|
|
|