@juangcarmona/lighthouse-sdlc 0.23.3 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/github-actions.md +2 -0
- package/package.json +1 -1
- package/skills/audience-guidance/SKILL.md +12 -2
- package/workflows/lighthouse-sdlc-apply-product-change.lock.yml +1 -21
- package/workflows/lighthouse-sdlc-apply-product-change.md +1 -0
- package/workflows/lighthouse-sdlc-apply-review.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-apply-review.md +4 -2
- package/workflows/lighthouse-sdlc-implement.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-implement.md +4 -2
- package/workflows/lighthouse-sdlc-integrate.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-integrate.md +4 -2
- package/workflows/lighthouse-sdlc-product-change.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-product-change.md +4 -2
- package/workflows/lighthouse-sdlc-propose.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-propose.md +4 -2
- package/workflows/lighthouse-sdlc-refine.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-refine.md +4 -2
- package/workflows/lighthouse-sdlc-review.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-review.md +4 -2
- package/workflows/lighthouse-sdlc-triage.lock.yml +7 -25
- package/workflows/lighthouse-sdlc-triage.md +4 -2
- package/workflows/shared/lighthouse-sdlc-stage.md +1 -0
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ Read the [audience policy](skills/audience-guidance/SKILL.md) when writing human
|
|
|
12
12
|
|
|
13
13
|
The policy includes reviewed immutable [source pins](skills/audience-guidance/sources.json) and explicit manual fallback reviews. A clean checkout or installed SDLC package needs no global writing skills or network access; delivery workers read the same packaged policy. Record which helper revision or fallback was used, without claiming an external skill ran. Existing workers receive the change only after their package or pinned source harness is updated through the normal installation route; this adds no workflow, gate or automatic installation.
|
|
14
14
|
|
|
15
|
+
When repository instructions explicitly authorize it, the [code and architecture fallback](skills/audience-guidance/SKILL.md#code-and-architecture-review) lets an isolated worker complete its required review without a missing global helper. Record the fallback method, reviewed source, findings and missing evidence. Packaging that guidance does not prove a native worker used it or change any approval gate.
|
|
16
|
+
|
|
15
17
|
## GitHub Actions
|
|
16
18
|
|
|
17
19
|
These actions require installed workers, enabled automation and the repository owner as actor. Opening an issue alone starts no agent. Every result links to its execution; an Actions success can contain a blocked assessment.
|
package/github-actions.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# GitHub Actions operator reference
|
|
2
2
|
|
|
3
|
+
Native workers disable both gh-aw failure-issue reporters (`report-failure-as-issue` and `report-failed-jobs`). Failed jobs remain failed in Actions, with logs and the authenticated stop on their source issue. Reinstall and recompile existing workflows to adopt this policy; updating a package alone does not change their executable locks. Agent preparation, execution and publication run only on the original workflow attempt. A worker job rerun skips those effects; it cannot reuse consumed authorization or search for preparation artifacts from a nonexistent attempt. Recover through the existing bounded maintenance path or a new authorized stage request after reconciling prior effects.
|
|
4
|
+
|
|
3
5
|
For labels, everyday actions and automatic continuation, start with the [delivery guide](README.md). Read this reference when installing workflows, provisioning the runtime or recovering a failed execution.
|
|
4
6
|
|
|
5
7
|
## Installation and runtime
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lighthouse-audience-guidance
|
|
3
|
-
description: Review human explanations, agent instructions and UI or visual work
|
|
3
|
+
description: Review human explanations, agent instructions and UI or visual work; perform repository-authorized code review when its named helper is unavailable.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Audience writing and review
|
|
@@ -14,6 +14,7 @@ Use this policy when drafting or reviewing issues, PR summaries, change overview
|
|
|
14
14
|
| Human explanations: issues, PR descriptions and summaries, change overviews, proposals, reports, product documentation | Plain English → Humanizer → evidence comparison |
|
|
15
15
|
| Agent instructions: AGENTS.md, skills, workflow prompts, documents reached through agent pointers | Writing for Agents → instruction comparison |
|
|
16
16
|
| UI and visual changes: layouts, components, themes, visual assets | Taste → accepted UI contract and visual evidence |
|
|
17
|
+
| Repository-required code or architecture review with an unavailable named helper | Code and architecture review below, only when the repository explicitly authorizes that fallback |
|
|
17
18
|
|
|
18
19
|
For mixed documents, apply the human reviews to explanatory prose and Writing for Agents to instructions, commands, constraints, ownership and completion criteria. Review UI copy as human prose; invoke Taste only when UI or visual work changes. Taste is not a general prose requirement. Preserve normative specification language; explain it separately rather than simplifying its obligations.
|
|
19
20
|
|
|
@@ -25,6 +26,15 @@ These Lighthouse-authored fallbacks ship in the source checkout and the SDLC npm
|
|
|
25
26
|
|
|
26
27
|
When updating a pin, review the source, referenced requirements, license and compatibility again, update the digest and review notes, then run the audience-guidance and package tests. Do not follow a mutable branch or silently substitute another skill named Taste or Humanizer.
|
|
27
28
|
|
|
29
|
+
## Code and architecture review
|
|
30
|
+
|
|
31
|
+
Use this Lighthouse-authored manual fallback only when the repository explicitly authorizes it for an unavailable code/architecture helper. It is not execution of Ponytail or another upstream skill, and it does not waive the required review. Do not install or copy global host skills during the run.
|
|
32
|
+
|
|
33
|
+
1. Read the request, accepted architecture and actual diff. Trace every affected caller, test, fixture, configuration and export. Identify changed behavior, trust boundaries and source/data that must survive. This step is complete when every affected path and preservation rule is accounted for.
|
|
34
|
+
2. Review the smallest complete correction using existing mechanisms and dependencies. Check input validation, failure/status propagation, ownership, concurrent activity and recovery before destructive effects. Record concrete defects and unnecessary changes against source locations; preserve original failures and unknown outcomes.
|
|
35
|
+
3. Run the required checks for the reviewed revision and retain their results. Use regressions that exercise changed behavior and failure boundaries. Distinguish executed checks from skips, fixtures from connected execution, and source verification from publication, installation and native acceptance. Missing required evidence remains a blocker under the current stage contract.
|
|
36
|
+
4. Record method `lighthouse-code-architecture-fallback-v1`, reviewed source, findings, checks and remaining risks in the existing result output or review evidence. Never claim the unavailable named helper ran. The review is complete when all affected paths were assessed and every unresolved defect or missing check has an explicit finding and next action; completion does not turn those findings into a passing assessment.
|
|
37
|
+
|
|
28
38
|
## Human explanations
|
|
29
39
|
|
|
30
40
|
### Plain English fallback
|
|
@@ -61,6 +71,6 @@ The reviewed Taste source is Leonxlnx's `design-taste-frontend` skill. Its websi
|
|
|
61
71
|
|
|
62
72
|
## Authority and final comparison
|
|
63
73
|
|
|
64
|
-
Product intent, accepted architecture, source evidence and lifecycle policy remain authoritative. Writing and design helpers guide presentation only; skill output cannot override product or architecture authority, change scope, waive evidence or human approval, or grant merge, release or deployment permission. Report conflicts to the responsible owner and preserve the accepted contract.
|
|
74
|
+
Product intent, accepted architecture, source evidence and lifecycle policy remain authoritative. Writing and design helpers guide presentation only; skill output cannot override product or architecture authority, change scope, waive evidence or human approval, or grant merge, release or deployment permission. The code/architecture fallback supplies review evidence within those same boundaries. Report conflicts to the responsible owner and preserve the accepted contract.
|
|
65
75
|
|
|
66
76
|
Before finishing, compare the reviewed artifact with its source. Keep missing evidence, failed checks, unavailable checks and pending required review distinct. If the fallback itself cannot be completed, report that limitation; never mark an unperformed required review as passed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"b2c1623b8d2f7480a5866128ebc312c70bce75c19f9bdcdf07f844c4e9702469","body_hash":"900316ff8535f6f9b38fea05138e4e8aa8ed64b3d4844ebad51810faf4bddea5","compiler_version":"v0.93.2","agent_id":"copilot","engine_versions":{"copilot":"1.0.101"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70","digest":"sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70","digest":"sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70","digest":"sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.37","digest":"sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"},{"image":"ghcr.io/github/github-mcp-server:v2.0.2","digest":"sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796"}],"mcp_servers":[{"name":"github","tools":["get_commit","get_file_contents","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["noop","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -1506,25 +1506,6 @@ jobs:
|
|
|
1506
1506
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1507
1507
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1508
1508
|
await main();
|
|
1509
|
-
- name: Report failed jobs
|
|
1510
|
-
id: report_failed_jobs
|
|
1511
|
-
if: always()
|
|
1512
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1513
|
-
env:
|
|
1514
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1515
|
-
GH_AW_WORKFLOW_NAME: "apply-product-change"
|
|
1516
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-apply-product-change.md"
|
|
1517
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1518
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1519
|
-
with:
|
|
1520
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1521
|
-
script: |
|
|
1522
|
-
const path = require('path');
|
|
1523
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1524
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1525
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1526
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1527
|
-
await main();
|
|
1528
1509
|
- name: Collect usage artifact files
|
|
1529
1510
|
if: always()
|
|
1530
1511
|
continue-on-error: true
|
|
@@ -1540,7 +1521,6 @@ jobs:
|
|
|
1540
1521
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1541
1522
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1542
1523
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1543
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1544
1524
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1545
1525
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1546
1526
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"7eaedb8423eb184c7daadf253fa72bfc65cf9caa708eb7972a024e8eaf316a57","body_hash":"8151890e19043f86541decb00d0dc86741daec051c004feb7beab27b025e3621","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","LIGHTHOUSE_CI_APP_PRIVATE_KEY"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -110,7 +110,8 @@ jobs:
|
|
|
110
110
|
needs:
|
|
111
111
|
- pre_activation
|
|
112
112
|
- prepare
|
|
113
|
-
if:
|
|
113
|
+
if: >
|
|
114
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
114
115
|
runs-on: ubuntu-24.04
|
|
115
116
|
# Permissions for the activation job (workflow permissions default to none).
|
|
116
117
|
permissions:
|
|
@@ -420,7 +421,8 @@ jobs:
|
|
|
420
421
|
needs:
|
|
421
422
|
- activation
|
|
422
423
|
- prepare
|
|
423
|
-
if:
|
|
424
|
+
if: >
|
|
425
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
424
426
|
runs-on:
|
|
425
427
|
- self-hosted
|
|
426
428
|
- linux
|
|
@@ -989,7 +991,6 @@ jobs:
|
|
|
989
991
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
990
992
|
permissions:
|
|
991
993
|
actions: read
|
|
992
|
-
issues: write
|
|
993
994
|
concurrency:
|
|
994
995
|
group: "gh-aw-conclusion-lighthouse-sdlc-apply-review-${{ github.run_id }}"
|
|
995
996
|
cancel-in-progress: false
|
|
@@ -1111,25 +1112,6 @@ jobs:
|
|
|
1111
1112
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1112
1113
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1113
1114
|
await main();
|
|
1114
|
-
- name: Report failed jobs
|
|
1115
|
-
id: report_failed_jobs
|
|
1116
|
-
if: always()
|
|
1117
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1118
|
-
env:
|
|
1119
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1120
|
-
GH_AW_WORKFLOW_NAME: "apply review"
|
|
1121
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-apply-review.md"
|
|
1122
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1123
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1124
|
-
with:
|
|
1125
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1126
|
-
script: |
|
|
1127
|
-
const path = require('path');
|
|
1128
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1129
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1130
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1131
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1132
|
-
await main();
|
|
1133
1115
|
- name: Collect usage artifact files
|
|
1134
1116
|
if: always()
|
|
1135
1117
|
continue-on-error: true
|
|
@@ -1145,7 +1127,6 @@ jobs:
|
|
|
1145
1127
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1146
1128
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1147
1129
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1148
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1149
1130
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1150
1131
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1151
1132
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1256,6 +1237,7 @@ jobs:
|
|
|
1256
1237
|
|
|
1257
1238
|
prepare:
|
|
1258
1239
|
name: Authorize and reserve issue
|
|
1240
|
+
if: github.run_attempt == 1
|
|
1259
1241
|
runs-on: ubuntu-24.04
|
|
1260
1242
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1261
1243
|
permissions:
|
|
@@ -1336,7 +1318,7 @@ jobs:
|
|
|
1336
1318
|
needs:
|
|
1337
1319
|
- agent
|
|
1338
1320
|
- prepare
|
|
1339
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1321
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1340
1322
|
runs-on: ubuntu-24.04
|
|
1341
1323
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1342
1324
|
permissions:
|
|
@@ -26,7 +26,7 @@ on:
|
|
|
26
26
|
required: false
|
|
27
27
|
type: string
|
|
28
28
|
needs: [prepare]
|
|
29
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
29
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
30
30
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
31
31
|
runs-on-slim: ubuntu-24.04
|
|
32
32
|
timeout-minutes: 55
|
|
@@ -57,6 +57,7 @@ safe-outputs:
|
|
|
57
57
|
report-incomplete: false
|
|
58
58
|
threat-detection: false
|
|
59
59
|
report-failure-as-issue: false
|
|
60
|
+
report-failed-jobs: false
|
|
60
61
|
report-missing-tool: false
|
|
61
62
|
report-missing-data: false
|
|
62
63
|
noop:
|
|
@@ -116,6 +117,7 @@ post-steps:
|
|
|
116
117
|
retention-days: 14
|
|
117
118
|
jobs:
|
|
118
119
|
prepare:
|
|
120
|
+
if: github.run_attempt == 1
|
|
119
121
|
concurrency:
|
|
120
122
|
group: ${{ inputs.epic-parent && format('lighthouse-issue-{0}', inputs.epic-parent) || format('lighthouse-prepare-{0}', github.run_id) }}
|
|
121
123
|
cancel-in-progress: false
|
|
@@ -187,7 +189,7 @@ jobs:
|
|
|
187
189
|
queue: max
|
|
188
190
|
name: Validate, publish and release
|
|
189
191
|
needs: [prepare, agent]
|
|
190
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
192
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
191
193
|
runs-on: ubuntu-24.04
|
|
192
194
|
permissions:
|
|
193
195
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"8ebeb6d033cb0a8deb9c149ce6879aa9f249bb6022a7cfdf84d5d83ec0e50ef5","body_hash":"260db41beef59e0a150c7e0ed9fed84f0f724b5aeba94e5d2576d4b203a9d663","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","LIGHTHOUSE_CI_APP_PRIVATE_KEY"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -110,7 +110,8 @@ jobs:
|
|
|
110
110
|
needs:
|
|
111
111
|
- pre_activation
|
|
112
112
|
- prepare
|
|
113
|
-
if:
|
|
113
|
+
if: >
|
|
114
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
114
115
|
runs-on: ubuntu-24.04
|
|
115
116
|
# Permissions for the activation job (workflow permissions default to none).
|
|
116
117
|
permissions:
|
|
@@ -420,7 +421,8 @@ jobs:
|
|
|
420
421
|
needs:
|
|
421
422
|
- activation
|
|
422
423
|
- prepare
|
|
423
|
-
if:
|
|
424
|
+
if: >
|
|
425
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
424
426
|
runs-on:
|
|
425
427
|
- self-hosted
|
|
426
428
|
- linux
|
|
@@ -988,7 +990,6 @@ jobs:
|
|
|
988
990
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
989
991
|
permissions:
|
|
990
992
|
actions: read
|
|
991
|
-
issues: write
|
|
992
993
|
concurrency:
|
|
993
994
|
group: "gh-aw-conclusion-lighthouse-sdlc-implement-${{ github.run_id }}"
|
|
994
995
|
cancel-in-progress: false
|
|
@@ -1110,25 +1111,6 @@ jobs:
|
|
|
1110
1111
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1111
1112
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1112
1113
|
await main();
|
|
1113
|
-
- name: Report failed jobs
|
|
1114
|
-
id: report_failed_jobs
|
|
1115
|
-
if: always()
|
|
1116
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1117
|
-
env:
|
|
1118
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1119
|
-
GH_AW_WORKFLOW_NAME: "implement"
|
|
1120
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-implement.md"
|
|
1121
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1122
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1123
|
-
with:
|
|
1124
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1125
|
-
script: |
|
|
1126
|
-
const path = require('path');
|
|
1127
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1128
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1129
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1130
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1131
|
-
await main();
|
|
1132
1114
|
- name: Collect usage artifact files
|
|
1133
1115
|
if: always()
|
|
1134
1116
|
continue-on-error: true
|
|
@@ -1144,7 +1126,6 @@ jobs:
|
|
|
1144
1126
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1145
1127
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1146
1128
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1147
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1148
1129
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1149
1130
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1150
1131
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1255,6 +1236,7 @@ jobs:
|
|
|
1255
1236
|
|
|
1256
1237
|
prepare:
|
|
1257
1238
|
name: Authorize and reserve issue
|
|
1239
|
+
if: github.run_attempt == 1
|
|
1258
1240
|
runs-on: ubuntu-24.04
|
|
1259
1241
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1260
1242
|
permissions:
|
|
@@ -1336,7 +1318,7 @@ jobs:
|
|
|
1336
1318
|
- agent
|
|
1337
1319
|
- pre_activation
|
|
1338
1320
|
- prepare
|
|
1339
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1321
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1340
1322
|
runs-on: ubuntu-24.04
|
|
1341
1323
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1342
1324
|
permissions:
|
|
@@ -26,7 +26,7 @@ on:
|
|
|
26
26
|
required: false
|
|
27
27
|
type: string
|
|
28
28
|
needs: [prepare]
|
|
29
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
29
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
30
30
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
31
31
|
runs-on-slim: ubuntu-24.04
|
|
32
32
|
timeout-minutes: 55
|
|
@@ -57,6 +57,7 @@ safe-outputs:
|
|
|
57
57
|
report-incomplete: false
|
|
58
58
|
threat-detection: false
|
|
59
59
|
report-failure-as-issue: false
|
|
60
|
+
report-failed-jobs: false
|
|
60
61
|
report-missing-tool: false
|
|
61
62
|
report-missing-data: false
|
|
62
63
|
noop:
|
|
@@ -115,6 +116,7 @@ post-steps:
|
|
|
115
116
|
retention-days: 14
|
|
116
117
|
jobs:
|
|
117
118
|
prepare:
|
|
119
|
+
if: github.run_attempt == 1
|
|
118
120
|
concurrency:
|
|
119
121
|
group: ${{ inputs.epic-parent && format('lighthouse-issue-{0}', inputs.epic-parent) || format('lighthouse-prepare-{0}', github.run_id) }}
|
|
120
122
|
cancel-in-progress: false
|
|
@@ -185,7 +187,7 @@ jobs:
|
|
|
185
187
|
queue: max
|
|
186
188
|
name: Validate, publish and release
|
|
187
189
|
needs: [prepare, pre_activation, activation, agent]
|
|
188
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
190
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
189
191
|
runs-on: ubuntu-24.04
|
|
190
192
|
permissions:
|
|
191
193
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"ff36563036a23234c0928df68ee81aa65c2f672ebeaccccfe7201bfa7271db27","body_hash":"71107231af6c0ea2e2f2880e7bfcf90d02e031b1db4c95a2d5b456e934f6f1ed","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -103,7 +103,8 @@ jobs:
|
|
|
103
103
|
needs:
|
|
104
104
|
- pre_activation
|
|
105
105
|
- prepare
|
|
106
|
-
if:
|
|
106
|
+
if: >
|
|
107
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
107
108
|
runs-on: ubuntu-24.04
|
|
108
109
|
# Permissions for the activation job (workflow permissions default to none).
|
|
109
110
|
permissions:
|
|
@@ -413,7 +414,8 @@ jobs:
|
|
|
413
414
|
needs:
|
|
414
415
|
- activation
|
|
415
416
|
- prepare
|
|
416
|
-
if:
|
|
417
|
+
if: >
|
|
418
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
417
419
|
runs-on:
|
|
418
420
|
- self-hosted
|
|
419
421
|
- linux
|
|
@@ -971,7 +973,6 @@ jobs:
|
|
|
971
973
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
972
974
|
permissions:
|
|
973
975
|
actions: read
|
|
974
|
-
issues: write
|
|
975
976
|
concurrency:
|
|
976
977
|
group: "gh-aw-conclusion-lighthouse-sdlc-integrate-${{ github.run_id }}"
|
|
977
978
|
cancel-in-progress: false
|
|
@@ -1093,25 +1094,6 @@ jobs:
|
|
|
1093
1094
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1094
1095
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1095
1096
|
await main();
|
|
1096
|
-
- name: Report failed jobs
|
|
1097
|
-
id: report_failed_jobs
|
|
1098
|
-
if: always()
|
|
1099
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1100
|
-
env:
|
|
1101
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1102
|
-
GH_AW_WORKFLOW_NAME: "integrate"
|
|
1103
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-integrate.md"
|
|
1104
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1105
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1106
|
-
with:
|
|
1107
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1108
|
-
script: |
|
|
1109
|
-
const path = require('path');
|
|
1110
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1111
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1112
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1113
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1114
|
-
await main();
|
|
1115
1097
|
- name: Collect usage artifact files
|
|
1116
1098
|
if: always()
|
|
1117
1099
|
continue-on-error: true
|
|
@@ -1127,7 +1109,6 @@ jobs:
|
|
|
1127
1109
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1128
1110
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1129
1111
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1130
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1131
1112
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1132
1113
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1133
1114
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1238,6 +1219,7 @@ jobs:
|
|
|
1238
1219
|
|
|
1239
1220
|
prepare:
|
|
1240
1221
|
name: Verify accepted commit, checks and evidence protection
|
|
1222
|
+
if: github.run_attempt == 1
|
|
1241
1223
|
runs-on: ubuntu-24.04
|
|
1242
1224
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1243
1225
|
permissions:
|
|
@@ -1312,7 +1294,7 @@ jobs:
|
|
|
1312
1294
|
needs:
|
|
1313
1295
|
- agent
|
|
1314
1296
|
- prepare
|
|
1315
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1297
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1316
1298
|
runs-on: ubuntu-24.04
|
|
1317
1299
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1318
1300
|
permissions:
|
|
@@ -22,7 +22,7 @@ on:
|
|
|
22
22
|
required: true
|
|
23
23
|
type: string
|
|
24
24
|
needs: [prepare]
|
|
25
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
25
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
26
26
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
27
27
|
runs-on-slim: ubuntu-24.04
|
|
28
28
|
timeout-minutes: 15
|
|
@@ -52,6 +52,7 @@ safe-outputs:
|
|
|
52
52
|
report-incomplete: false
|
|
53
53
|
threat-detection: false
|
|
54
54
|
report-failure-as-issue: false
|
|
55
|
+
report-failed-jobs: false
|
|
55
56
|
report-missing-tool: false
|
|
56
57
|
report-missing-data: false
|
|
57
58
|
noop:
|
|
@@ -100,6 +101,7 @@ post-steps:
|
|
|
100
101
|
retention-days: 14
|
|
101
102
|
jobs:
|
|
102
103
|
prepare:
|
|
104
|
+
if: github.run_attempt == 1
|
|
103
105
|
outputs:
|
|
104
106
|
eligible: ${{ steps.prepare.outputs.eligible }}
|
|
105
107
|
revision: ${{ steps.prepare.outputs.revision }}
|
|
@@ -165,7 +167,7 @@ jobs:
|
|
|
165
167
|
cancel-in-progress: false
|
|
166
168
|
name: Validate, publish and release
|
|
167
169
|
needs: [prepare, agent]
|
|
168
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
170
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
169
171
|
runs-on: ubuntu-24.04
|
|
170
172
|
permissions:
|
|
171
173
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"14b4c19f2b32faa888a7e2ccb78f065b74d36298af1729339e560ad60c492be8","body_hash":"5269ffd1955c7c2f756025111209f18fd1d97a635086c7d29d7a24d1b8a9b09d","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -103,7 +103,8 @@ jobs:
|
|
|
103
103
|
needs:
|
|
104
104
|
- pre_activation
|
|
105
105
|
- prepare
|
|
106
|
-
if:
|
|
106
|
+
if: >
|
|
107
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
107
108
|
runs-on: ubuntu-24.04
|
|
108
109
|
# Permissions for the activation job (workflow permissions default to none).
|
|
109
110
|
permissions:
|
|
@@ -413,7 +414,8 @@ jobs:
|
|
|
413
414
|
needs:
|
|
414
415
|
- activation
|
|
415
416
|
- prepare
|
|
416
|
-
if:
|
|
417
|
+
if: >
|
|
418
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
417
419
|
runs-on:
|
|
418
420
|
- self-hosted
|
|
419
421
|
- linux
|
|
@@ -968,7 +970,6 @@ jobs:
|
|
|
968
970
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
969
971
|
permissions:
|
|
970
972
|
actions: read
|
|
971
|
-
issues: write
|
|
972
973
|
concurrency:
|
|
973
974
|
group: "gh-aw-conclusion-lighthouse-sdlc-product-change-${{ github.run_id }}"
|
|
974
975
|
cancel-in-progress: false
|
|
@@ -1090,25 +1091,6 @@ jobs:
|
|
|
1090
1091
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1091
1092
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1092
1093
|
await main();
|
|
1093
|
-
- name: Report failed jobs
|
|
1094
|
-
id: report_failed_jobs
|
|
1095
|
-
if: always()
|
|
1096
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1097
|
-
env:
|
|
1098
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1099
|
-
GH_AW_WORKFLOW_NAME: "product-change"
|
|
1100
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-product-change.md"
|
|
1101
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1102
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1103
|
-
with:
|
|
1104
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1105
|
-
script: |
|
|
1106
|
-
const path = require('path');
|
|
1107
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1108
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1109
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1110
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1111
|
-
await main();
|
|
1112
1094
|
- name: Collect usage artifact files
|
|
1113
1095
|
if: always()
|
|
1114
1096
|
continue-on-error: true
|
|
@@ -1124,7 +1106,6 @@ jobs:
|
|
|
1124
1106
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1125
1107
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1126
1108
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1127
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1128
1109
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1129
1110
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1130
1111
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1235,6 +1216,7 @@ jobs:
|
|
|
1235
1216
|
|
|
1236
1217
|
prepare:
|
|
1237
1218
|
name: Authenticate and checkpoint the idea
|
|
1219
|
+
if: github.run_attempt == 1
|
|
1238
1220
|
runs-on: ubuntu-24.04
|
|
1239
1221
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1240
1222
|
permissions:
|
|
@@ -1335,7 +1317,7 @@ jobs:
|
|
|
1335
1317
|
- agent
|
|
1336
1318
|
- pre_activation
|
|
1337
1319
|
- prepare
|
|
1338
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1320
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1339
1321
|
runs-on: ubuntu-24.04
|
|
1340
1322
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1341
1323
|
permissions:
|
|
@@ -21,7 +21,7 @@ on:
|
|
|
21
21
|
required: true
|
|
22
22
|
type: string
|
|
23
23
|
needs: [prepare]
|
|
24
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
24
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
25
25
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
26
26
|
runs-on-slim: ubuntu-24.04
|
|
27
27
|
timeout-minutes: 30
|
|
@@ -49,6 +49,7 @@ safe-outputs:
|
|
|
49
49
|
report-incomplete: false
|
|
50
50
|
threat-detection: false
|
|
51
51
|
report-failure-as-issue: false
|
|
52
|
+
report-failed-jobs: false
|
|
52
53
|
report-missing-tool: false
|
|
53
54
|
report-missing-data: false
|
|
54
55
|
noop:
|
|
@@ -94,6 +95,7 @@ post-steps:
|
|
|
94
95
|
retention-days: 14
|
|
95
96
|
jobs:
|
|
96
97
|
prepare:
|
|
98
|
+
if: github.run_attempt == 1
|
|
97
99
|
outputs:
|
|
98
100
|
eligible: ${{ steps.prepare.outputs.eligible }}
|
|
99
101
|
source_revision: ${{ steps.prepare.outputs.source_revision }}
|
|
@@ -180,7 +182,7 @@ jobs:
|
|
|
180
182
|
publish:
|
|
181
183
|
name: Validate and publish the product candidate
|
|
182
184
|
needs: [prepare, pre_activation, activation, agent]
|
|
183
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
185
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
184
186
|
runs-on: ubuntu-24.04
|
|
185
187
|
permissions:
|
|
186
188
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"eef1964ff82ef3870632e88a6c192a32e18c7b30b00b4c971ec5c76a8a226d3a","body_hash":"837f36195c7a0bf8859d78018be1060568e04a8743c44b1f3fd89c7344bc4752","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -103,7 +103,8 @@ jobs:
|
|
|
103
103
|
needs:
|
|
104
104
|
- pre_activation
|
|
105
105
|
- prepare
|
|
106
|
-
if:
|
|
106
|
+
if: >
|
|
107
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
107
108
|
runs-on: ubuntu-24.04
|
|
108
109
|
# Permissions for the activation job (workflow permissions default to none).
|
|
109
110
|
permissions:
|
|
@@ -413,7 +414,8 @@ jobs:
|
|
|
413
414
|
needs:
|
|
414
415
|
- activation
|
|
415
416
|
- prepare
|
|
416
|
-
if:
|
|
417
|
+
if: >
|
|
418
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
417
419
|
runs-on:
|
|
418
420
|
- self-hosted
|
|
419
421
|
- linux
|
|
@@ -971,7 +973,6 @@ jobs:
|
|
|
971
973
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
972
974
|
permissions:
|
|
973
975
|
actions: read
|
|
974
|
-
issues: write
|
|
975
976
|
concurrency:
|
|
976
977
|
group: "gh-aw-conclusion-lighthouse-sdlc-propose-${{ github.run_id }}"
|
|
977
978
|
cancel-in-progress: false
|
|
@@ -1093,25 +1094,6 @@ jobs:
|
|
|
1093
1094
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1094
1095
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1095
1096
|
await main();
|
|
1096
|
-
- name: Report failed jobs
|
|
1097
|
-
id: report_failed_jobs
|
|
1098
|
-
if: always()
|
|
1099
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1100
|
-
env:
|
|
1101
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1102
|
-
GH_AW_WORKFLOW_NAME: "propose"
|
|
1103
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-propose.md"
|
|
1104
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1105
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1106
|
-
with:
|
|
1107
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1108
|
-
script: |
|
|
1109
|
-
const path = require('path');
|
|
1110
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1111
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1112
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1113
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1114
|
-
await main();
|
|
1115
1097
|
- name: Collect usage artifact files
|
|
1116
1098
|
if: always()
|
|
1117
1099
|
continue-on-error: true
|
|
@@ -1127,7 +1109,6 @@ jobs:
|
|
|
1127
1109
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1128
1110
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1129
1111
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1130
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1131
1112
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1132
1113
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1133
1114
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1238,6 +1219,7 @@ jobs:
|
|
|
1238
1219
|
|
|
1239
1220
|
prepare:
|
|
1240
1221
|
name: Authorize and reserve issue
|
|
1222
|
+
if: github.run_attempt == 1
|
|
1241
1223
|
runs-on: ubuntu-24.04
|
|
1242
1224
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1243
1225
|
permissions:
|
|
@@ -1314,7 +1296,7 @@ jobs:
|
|
|
1314
1296
|
- agent
|
|
1315
1297
|
- pre_activation
|
|
1316
1298
|
- prepare
|
|
1317
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1299
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1318
1300
|
runs-on: ubuntu-24.04
|
|
1319
1301
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1320
1302
|
permissions:
|
|
@@ -22,7 +22,7 @@ on:
|
|
|
22
22
|
required: true
|
|
23
23
|
type: string
|
|
24
24
|
needs: [prepare]
|
|
25
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
25
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
26
26
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
27
27
|
runs-on-slim: ubuntu-24.04
|
|
28
28
|
timeout-minutes: 15
|
|
@@ -52,6 +52,7 @@ safe-outputs:
|
|
|
52
52
|
report-incomplete: false
|
|
53
53
|
threat-detection: false
|
|
54
54
|
report-failure-as-issue: false
|
|
55
|
+
report-failed-jobs: false
|
|
55
56
|
report-missing-tool: false
|
|
56
57
|
report-missing-data: false
|
|
57
58
|
noop:
|
|
@@ -100,6 +101,7 @@ post-steps:
|
|
|
100
101
|
retention-days: 14
|
|
101
102
|
jobs:
|
|
102
103
|
prepare:
|
|
104
|
+
if: github.run_attempt == 1
|
|
103
105
|
outputs:
|
|
104
106
|
eligible: ${{ steps.prepare.outputs.eligible }}
|
|
105
107
|
source_revision: ${{ steps.prepare.outputs.source_revision }}
|
|
@@ -162,7 +164,7 @@ jobs:
|
|
|
162
164
|
publish:
|
|
163
165
|
name: Validate, publish and release
|
|
164
166
|
needs: [prepare, pre_activation, activation, agent]
|
|
165
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
167
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
166
168
|
runs-on: ubuntu-24.04
|
|
167
169
|
permissions:
|
|
168
170
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d44ea2441f8b806f6f2d9e6be2e057699f2a916dd26aabd9591f788f5cf927c5","body_hash":"00aaac0798637a281758028c249e7c1086c7ca9e32ea9cb2ef51af769c3e2586","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -107,7 +107,8 @@ jobs:
|
|
|
107
107
|
needs:
|
|
108
108
|
- pre_activation
|
|
109
109
|
- prepare
|
|
110
|
-
if:
|
|
110
|
+
if: >
|
|
111
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
111
112
|
runs-on: ubuntu-24.04
|
|
112
113
|
# Permissions for the activation job (workflow permissions default to none).
|
|
113
114
|
permissions:
|
|
@@ -417,7 +418,8 @@ jobs:
|
|
|
417
418
|
needs:
|
|
418
419
|
- activation
|
|
419
420
|
- prepare
|
|
420
|
-
if:
|
|
421
|
+
if: >
|
|
422
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
421
423
|
runs-on:
|
|
422
424
|
- self-hosted
|
|
423
425
|
- linux
|
|
@@ -975,7 +977,6 @@ jobs:
|
|
|
975
977
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
976
978
|
permissions:
|
|
977
979
|
actions: read
|
|
978
|
-
issues: write
|
|
979
980
|
concurrency:
|
|
980
981
|
group: "gh-aw-conclusion-lighthouse-sdlc-refine-${{ github.run_id }}"
|
|
981
982
|
cancel-in-progress: false
|
|
@@ -1097,25 +1098,6 @@ jobs:
|
|
|
1097
1098
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1098
1099
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1099
1100
|
await main();
|
|
1100
|
-
- name: Report failed jobs
|
|
1101
|
-
id: report_failed_jobs
|
|
1102
|
-
if: always()
|
|
1103
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1104
|
-
env:
|
|
1105
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1106
|
-
GH_AW_WORKFLOW_NAME: "refine"
|
|
1107
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-refine.md"
|
|
1108
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1109
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1110
|
-
with:
|
|
1111
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1112
|
-
script: |
|
|
1113
|
-
const path = require('path');
|
|
1114
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1115
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1116
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1117
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1118
|
-
await main();
|
|
1119
1101
|
- name: Collect usage artifact files
|
|
1120
1102
|
if: always()
|
|
1121
1103
|
continue-on-error: true
|
|
@@ -1131,7 +1113,6 @@ jobs:
|
|
|
1131
1113
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1132
1114
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1133
1115
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1134
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1135
1116
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1136
1117
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1137
1118
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1242,6 +1223,7 @@ jobs:
|
|
|
1242
1223
|
|
|
1243
1224
|
prepare:
|
|
1244
1225
|
name: Authorize and reserve issue
|
|
1226
|
+
if: github.run_attempt == 1
|
|
1245
1227
|
runs-on: ubuntu-24.04
|
|
1246
1228
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1247
1229
|
permissions:
|
|
@@ -1323,7 +1305,7 @@ jobs:
|
|
|
1323
1305
|
- agent
|
|
1324
1306
|
- pre_activation
|
|
1325
1307
|
- prepare
|
|
1326
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1308
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1327
1309
|
runs-on: ubuntu-24.04
|
|
1328
1310
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1329
1311
|
permissions:
|
|
@@ -26,7 +26,7 @@ on:
|
|
|
26
26
|
required: false
|
|
27
27
|
type: string
|
|
28
28
|
needs: [prepare]
|
|
29
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
29
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
30
30
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
31
31
|
runs-on-slim: ubuntu-24.04
|
|
32
32
|
timeout-minutes: 15
|
|
@@ -56,6 +56,7 @@ safe-outputs:
|
|
|
56
56
|
report-incomplete: false
|
|
57
57
|
threat-detection: false
|
|
58
58
|
report-failure-as-issue: false
|
|
59
|
+
report-failed-jobs: false
|
|
59
60
|
report-missing-tool: false
|
|
60
61
|
report-missing-data: false
|
|
61
62
|
noop:
|
|
@@ -104,6 +105,7 @@ post-steps:
|
|
|
104
105
|
retention-days: 14
|
|
105
106
|
jobs:
|
|
106
107
|
prepare:
|
|
108
|
+
if: github.run_attempt == 1
|
|
107
109
|
concurrency:
|
|
108
110
|
group: ${{ inputs.epic-parent && format('lighthouse-issue-{0}', inputs.epic-parent) || format('lighthouse-prepare-{0}', github.run_id) }}
|
|
109
111
|
cancel-in-progress: false
|
|
@@ -174,7 +176,7 @@ jobs:
|
|
|
174
176
|
queue: max
|
|
175
177
|
name: Validate, publish and release
|
|
176
178
|
needs: [prepare, pre_activation, activation, agent]
|
|
177
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
179
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
178
180
|
runs-on: ubuntu-24.04
|
|
179
181
|
permissions:
|
|
180
182
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"a29df0809fdfb8ab0d04d16dfcdef053c1c155c664d8bd26f55c8adb4c9c5d40","body_hash":"13d2a6e093a7dc59f842bf0e8e8ea2a1c5a2879c8608b026dac1197b022baebe","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -105,7 +105,8 @@ jobs:
|
|
|
105
105
|
needs:
|
|
106
106
|
- pre_activation
|
|
107
107
|
- prepare
|
|
108
|
-
if:
|
|
108
|
+
if: >
|
|
109
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
109
110
|
runs-on: ubuntu-24.04
|
|
110
111
|
# Permissions for the activation job (workflow permissions default to none).
|
|
111
112
|
permissions:
|
|
@@ -415,7 +416,8 @@ jobs:
|
|
|
415
416
|
needs:
|
|
416
417
|
- activation
|
|
417
418
|
- prepare
|
|
418
|
-
if:
|
|
419
|
+
if: >
|
|
420
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
419
421
|
runs-on:
|
|
420
422
|
- self-hosted
|
|
421
423
|
- linux
|
|
@@ -973,7 +975,6 @@ jobs:
|
|
|
973
975
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
974
976
|
permissions:
|
|
975
977
|
actions: read
|
|
976
|
-
issues: write
|
|
977
978
|
concurrency:
|
|
978
979
|
group: "gh-aw-conclusion-lighthouse-sdlc-review-${{ github.run_id }}"
|
|
979
980
|
cancel-in-progress: false
|
|
@@ -1095,25 +1096,6 @@ jobs:
|
|
|
1095
1096
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1096
1097
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1097
1098
|
await main();
|
|
1098
|
-
- name: Report failed jobs
|
|
1099
|
-
id: report_failed_jobs
|
|
1100
|
-
if: always()
|
|
1101
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1102
|
-
env:
|
|
1103
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1104
|
-
GH_AW_WORKFLOW_NAME: "review"
|
|
1105
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-review.md"
|
|
1106
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1107
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1108
|
-
with:
|
|
1109
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1110
|
-
script: |
|
|
1111
|
-
const path = require('path');
|
|
1112
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1113
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1114
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1115
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1116
|
-
await main();
|
|
1117
1099
|
- name: Collect usage artifact files
|
|
1118
1100
|
if: always()
|
|
1119
1101
|
continue-on-error: true
|
|
@@ -1129,7 +1111,6 @@ jobs:
|
|
|
1129
1111
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1130
1112
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1131
1113
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1132
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1133
1114
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1134
1115
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1135
1116
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1240,6 +1221,7 @@ jobs:
|
|
|
1240
1221
|
|
|
1241
1222
|
prepare:
|
|
1242
1223
|
name: Verify accepted commit, checks and evidence protection
|
|
1224
|
+
if: github.run_attempt == 1
|
|
1243
1225
|
runs-on: ubuntu-24.04
|
|
1244
1226
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1245
1227
|
permissions:
|
|
@@ -1327,7 +1309,7 @@ jobs:
|
|
|
1327
1309
|
needs:
|
|
1328
1310
|
- agent
|
|
1329
1311
|
- prepare
|
|
1330
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1312
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1331
1313
|
runs-on: ubuntu-24.04
|
|
1332
1314
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1333
1315
|
permissions:
|
|
@@ -22,7 +22,7 @@ on:
|
|
|
22
22
|
required: true
|
|
23
23
|
type: string
|
|
24
24
|
needs: [prepare]
|
|
25
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
25
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
26
26
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
27
27
|
runs-on-slim: ubuntu-24.04
|
|
28
28
|
timeout-minutes: 15
|
|
@@ -53,6 +53,7 @@ safe-outputs:
|
|
|
53
53
|
report-incomplete: false
|
|
54
54
|
threat-detection: false
|
|
55
55
|
report-failure-as-issue: false
|
|
56
|
+
report-failed-jobs: false
|
|
56
57
|
report-missing-tool: false
|
|
57
58
|
report-missing-data: false
|
|
58
59
|
noop:
|
|
@@ -101,6 +102,7 @@ post-steps:
|
|
|
101
102
|
retention-days: 14
|
|
102
103
|
jobs:
|
|
103
104
|
prepare:
|
|
105
|
+
if: github.run_attempt == 1
|
|
104
106
|
outputs:
|
|
105
107
|
eligible: ${{ steps.prepare.outputs.eligible }}
|
|
106
108
|
revision: ${{ steps.prepare.outputs.revision }}
|
|
@@ -179,7 +181,7 @@ jobs:
|
|
|
179
181
|
cancel-in-progress: false
|
|
180
182
|
name: Validate, publish and release
|
|
181
183
|
needs: [prepare, agent]
|
|
182
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
184
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
183
185
|
runs-on: ubuntu-24.04
|
|
184
186
|
permissions:
|
|
185
187
|
actions: write
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4fc63f0575d7aef4fcb972af1ee40061dd3c0e846f79f08c78534fa4091b29fb","body_hash":"b6819b09222b408b8140fdc320e7270d45149ccb70442e528ef4f0ffa86e985c","compiler_version":"v0.93.2","agent_id":"opencode","engine_versions":{"opencode":"2.1.0"},"agent_image_runner":"[\"self-hosted\",\"linux\",\"lighthouse-workflow\"]"}
|
|
2
2
|
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09","version":"v5"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-node","sha":"a0853c24544627f65ddf259abe73b1d18a591444","version":"v5"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d9128eb3ea40c18b77c76184eda03c0ff2608d79","version":"v0.93.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382","pinned_image":"ghcr.io/github/gh-aw-node@sha256:41835613992df88f51e923bad486f96dfb2e6cda29f13e217df41833284ae382"}],"mcp_servers":[{"name":"safeoutputs","tools":["noop"]}],"threat_detection":{"mode":"disabled"},"admission":false}
|
|
3
3
|
# This file was automatically generated by gh-aw (v0.93.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
4
|
#
|
|
@@ -107,7 +107,8 @@ jobs:
|
|
|
107
107
|
needs:
|
|
108
108
|
- pre_activation
|
|
109
109
|
- prepare
|
|
110
|
-
if:
|
|
110
|
+
if: >
|
|
111
|
+
needs.pre_activation.outputs.activated == 'true' && (github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true')
|
|
111
112
|
runs-on: ubuntu-24.04
|
|
112
113
|
# Permissions for the activation job (workflow permissions default to none).
|
|
113
114
|
permissions:
|
|
@@ -417,7 +418,8 @@ jobs:
|
|
|
417
418
|
needs:
|
|
418
419
|
- activation
|
|
419
420
|
- prepare
|
|
420
|
-
if:
|
|
421
|
+
if: >
|
|
422
|
+
(github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true') && (needs.activation.outputs.daily_ai_credits_exceeded != 'true')
|
|
421
423
|
runs-on:
|
|
422
424
|
- self-hosted
|
|
423
425
|
- linux
|
|
@@ -975,7 +977,6 @@ jobs:
|
|
|
975
977
|
# Permissions for the conclusion job (workflow permissions default to none).
|
|
976
978
|
permissions:
|
|
977
979
|
actions: read
|
|
978
|
-
issues: write
|
|
979
980
|
concurrency:
|
|
980
981
|
group: "gh-aw-conclusion-lighthouse-sdlc-triage-${{ github.run_id }}"
|
|
981
982
|
cancel-in-progress: false
|
|
@@ -1097,25 +1098,6 @@ jobs:
|
|
|
1097
1098
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1098
1099
|
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1099
1100
|
await main();
|
|
1100
|
-
- name: Report failed jobs
|
|
1101
|
-
id: report_failed_jobs
|
|
1102
|
-
if: always()
|
|
1103
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1104
|
-
env:
|
|
1105
|
-
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1106
|
-
GH_AW_WORKFLOW_NAME: "triage"
|
|
1107
|
-
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/lighthouse-sdlc-triage.md"
|
|
1108
|
-
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1109
|
-
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1110
|
-
with:
|
|
1111
|
-
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1112
|
-
script: |
|
|
1113
|
-
const path = require('path');
|
|
1114
|
-
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1115
|
-
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1116
|
-
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1117
|
-
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1118
|
-
await main();
|
|
1119
1101
|
- name: Collect usage artifact files
|
|
1120
1102
|
if: always()
|
|
1121
1103
|
continue-on-error: true
|
|
@@ -1131,7 +1113,6 @@ jobs:
|
|
|
1131
1113
|
GH_AW_ADMISSION_MAX_AI_CREDITS_EVALS: ${{ needs.activation.outputs.admission-max-ai-credits-evals }}
|
|
1132
1114
|
GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'
|
|
1133
1115
|
GH_AW_GRADER_MANIFEST_CHUNKS: '1'
|
|
1134
|
-
GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}
|
|
1135
1116
|
GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}
|
|
1136
1117
|
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1137
1118
|
GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}
|
|
@@ -1242,6 +1223,7 @@ jobs:
|
|
|
1242
1223
|
|
|
1243
1224
|
prepare:
|
|
1244
1225
|
name: Authorize and reserve issue
|
|
1226
|
+
if: github.run_attempt == 1
|
|
1245
1227
|
runs-on: ubuntu-24.04
|
|
1246
1228
|
# Permissions for the prepare job (workflow permissions default to none).
|
|
1247
1229
|
permissions:
|
|
@@ -1322,7 +1304,7 @@ jobs:
|
|
|
1322
1304
|
- agent
|
|
1323
1305
|
- pre_activation
|
|
1324
1306
|
- prepare
|
|
1325
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1307
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
1326
1308
|
runs-on: ubuntu-24.04
|
|
1327
1309
|
# Permissions for the publish job (workflow permissions default to none).
|
|
1328
1310
|
permissions:
|
|
@@ -25,7 +25,7 @@ on:
|
|
|
25
25
|
required: false
|
|
26
26
|
type: string
|
|
27
27
|
needs: [prepare]
|
|
28
|
-
if: needs.prepare.outputs.eligible == 'true'
|
|
28
|
+
if: github.run_attempt == 1 && needs.prepare.outputs.eligible == 'true'
|
|
29
29
|
runs-on: [self-hosted, linux, lighthouse-workflow]
|
|
30
30
|
runs-on-slim: ubuntu-24.04
|
|
31
31
|
timeout-minutes: 15
|
|
@@ -54,6 +54,7 @@ safe-outputs:
|
|
|
54
54
|
report-incomplete: false
|
|
55
55
|
threat-detection: false
|
|
56
56
|
report-failure-as-issue: false
|
|
57
|
+
report-failed-jobs: false
|
|
57
58
|
report-missing-tool: false
|
|
58
59
|
report-missing-data: false
|
|
59
60
|
noop:
|
|
@@ -102,6 +103,7 @@ post-steps:
|
|
|
102
103
|
retention-days: 14
|
|
103
104
|
jobs:
|
|
104
105
|
prepare:
|
|
106
|
+
if: github.run_attempt == 1
|
|
105
107
|
concurrency:
|
|
106
108
|
group: ${{ inputs.epic-parent && format('lighthouse-issue-{0}', inputs.epic-parent) || format('lighthouse-prepare-{0}', github.run_id) }}
|
|
107
109
|
cancel-in-progress: false
|
|
@@ -171,7 +173,7 @@ jobs:
|
|
|
171
173
|
queue: max
|
|
172
174
|
name: Validate, publish and release
|
|
173
175
|
needs: [prepare, pre_activation, activation, agent]
|
|
174
|
-
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
176
|
+
if: always() && github.run_attempt == 1 && needs.prepare.result == 'success' && needs.prepare.outputs.eligible == 'true'
|
|
175
177
|
runs-on: ubuntu-24.04
|
|
176
178
|
permissions:
|
|
177
179
|
actions: write
|