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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ updates:
groups:
github-actions:
patterns: ['*']
# gh-aw owns this runtime and its generated script calls; upgrade them together.
ignore:
- dependency-name: 'github/gh-aw-actions'
schedule:
interval: 'weekly'
cooldown:
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/mypy-primer-analysis.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions .github/workflows/mypy-primer-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
ref: ${{ github.workflow_sha }}
persist-credentials: false
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: mypy_primer_analysis_context
run-id: ${{ github.event.workflow_run.id }}
Expand All @@ -62,7 +62,7 @@ jobs:
const source = await loadSource(github.request.bind(github), `${context.repo.owner}/${context.repo.repo}`, handoff);
fs.writeFileSync(path.join(process.env.RUNNER_TEMP, 'primer-source.json'), JSON.stringify(source));
return source.runId;
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: mypy_primer_diffs_*
run-id: ${{ steps.source.outputs.result }}
Expand All @@ -87,14 +87,14 @@ jobs:
fs.writeFileSync(path.join(folder, 'manifest.json'), JSON.stringify(manifest, null, 2));
core.setOutput('has_changes', String(manifest.projects.length > 0));
core.notice(`${manifest.projects.length} changed projects; all eight shards accounted for`);
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: steps.prepare.outputs.has_changes == 'true'
with:
name: primer-analysis-input
path: ${{ runner.temp }}/primer-input
if-no-files-found: error
steps:
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: primer-analysis-input
path: /tmp/gh-aw/primer-input
Expand Down Expand Up @@ -123,11 +123,11 @@ safe-outputs:
with:
ref: ${{ github.workflow_sha }}
persist-credentials: false
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: primer-analysis-input
path: ${{ runner.temp }}/primer-input
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: activation
path: ${{ runner.temp }}/primer-activation
Expand Down Expand Up @@ -155,7 +155,7 @@ safe-outputs:
);
core.notice(result);
await core.summary.addRaw(result).write();
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: mypy-primer-analysis-report
path: ${{ runner.temp }}/mypy-primer-analysis.md
Expand Down
27 changes: 24 additions & 3 deletions docs/mypy-primer-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,35 @@ They can be adjusted in `.github/workflows/mypy-primer-analysis.md`. The agent m
mark insufficiently investigated projects as needing review rather than inventing
evidence to meet its budget.

The workflow is compiled with GitHub Agentic Workflows v0.86.2:
The workflow is compiled with GitHub Agentic Workflows v0.86.2. Use that exact
compiler version for regeneration; check the installed version first:

```text
gh aw version
gh aw compile mypy-primer-analysis --validate
```

Commit the Markdown source and generated lock file together; do not edit the lock
file manually. For `gh aw compile --staged`, the publisher reads the staged flag
The compiler owns the `github/gh-aw-actions/setup` runtime as well as the generated
script calls. `.github/aw/actions-lock.json` records its version-to-SHA resolution;
the generated metadata, runtime pin, and compiler version must agree. A standalone
runtime bump can remove scripts that the existing generated workflow still calls
(for example, v0.86.2's `install_ripgrep.sh` is absent from v0.88.4). Dependabot
therefore ignores only `github/gh-aw-actions`; unrelated action updates remain
enabled. The existing primer workflow tests also check compiler/runtime consistency.

To upgrade, deliberately select the compiler version, regenerate with its matching
runtime, and review the generated diff and resolution lock together. Do not override
the runtime independently or manually edit `.lock.yml`. Keep authored workflow
changes, any resolution-lock changes, and regenerated output together in the same
commit. Check permissions, tools, container/action pins, and the threat-detection
and publisher gates; rerun the primer tests and compile again to confirm stable
output. If Dependabot updated other actions in the generated workflow, reconcile
their authored Markdown pins before regeneration rather than silently downgrading
them. Local compilation does not prove a live comment was posted: `workflow_run`
uses the trusted default-branch workflow, so a PR-only repair cannot fix an existing
run on `main`.

For `gh aw compile --staged`, the publisher reads the staged flag
from the trusted activation artifact: v0.86.2 does not propagate that flag's
environment variable into custom output jobs. Missing activation metadata fails
closed rather than defaulting to live publication.
Expand Down
Loading
Loading