osv-followup: PRs from osv/ branches (the runner deletes its claude/ branch at the end of a run)

This commit is contained in:
janhouse committed 2026-11-19 18:32:46 +02:00
1 parent d133a60b0b
commit f6a5ec2331
2 files changed
+2 -2

No files matched your search

+2 -2
View File
@@ -381,7 +381,7 @@ For **each** advisory:
The `reason` must be **specific and true**: name our files, functions or configuration and the dependency path, and say why the vulnerable code is not reached or not exposed. Start it with a CycloneDX justification: `code_not_present`, `code_not_reachable`, `requires_configuration`, `requires_dependency`, `requires_environment`, `protected_by_compiler`, `protected_at_runtime`, `protected_at_perimeter` or `protected_by_mitigating_control`. "Not exploitable" or "dev dependency" alone is not a reason. `ignoreUntil` is {days} days from today ({until.isoformat()}): the monthly re-check refreshes it while the reason still holds. Check the file still parses: `python3 -c 'import tomllib,sys; tomllib.load(open("{config_name}","rb"))'`.
If an advisory **does** affect us and there is no fix, do not ignore it: describe the exposure and the options in the PR and in this issue.
4. **Open one pull request** for this issue: branch `osv/issue-<this issue's number>` from `{base}`, commit, push, then create the PR against `{base}` (`mcp__local_git_ops__create_pull_request`). Its body starts with `Closes #<this issue's number>` and has one line per advisory: the id, and either the fix (package and version) or the justification. Do not merge it; do not close this issue yourself (the PR closes it when merged).
4. **Open one pull request** for this issue from a branch named `osv/issue-<this issue's number>`, created from `{base}` (`git checkout -b osv/issue-<n> origin/{base}`). Do not use the `claude/issue-…` branch the runner checked out: its end-of-run cleanup deletes that branch, which closes a PR made from it. Commit, push, then create the PR against `{base}` (`mcp__local_git_ops__create_pull_request`). Its body starts with `Closes #<this issue's number>` and has one line per advisory: the id, and either the fix (package and version) or the justification. Do not merge it; do not close this issue yourself (the PR closes it when merged).
If you run short of time, push what is done, open the PR with those advisories and list in this issue the ones still open."""
@@ -404,7 +404,7 @@ For **each** entry:
Reasons start with a CycloneDX justification (`code_not_present`, `code_not_reachable`, `requires_configuration`, `requires_dependency`, `requires_environment`, `protected_by_compiler`, `protected_at_runtime`, `protected_at_perimeter`, `protected_by_mitigating_control`). Check the file still parses: `python3 -c 'import tomllib,sys; tomllib.load(open("{config_name}","rb"))'`.
If anything changes, open one pull request: branch `osv/recheck-<this issue's number>` from `{base}`, PR against `{base}` (`mcp__local_git_ops__create_pull_request`), body starting with `Closes #<this issue's number>` and one line per entry (kept / reason rewritten / removed, and why). Do not merge it. If nothing needs changing, comment with one line per entry saying why it still holds; then this issue may be closed."""
If anything changes, open one pull request from a branch named `osv/recheck-<this issue's number>`, created from `{base}` (not the runner's `claude/issue-…` branch: its end-of-run cleanup deletes it, which closes a PR made from it), PR against `{base}` (`mcp__local_git_ops__create_pull_request`), body starting with `Closes #<this issue's number>` and one line per entry (kept / reason rewritten / removed, and why). Do not merge it. If nothing needs changing, comment with one line per entry saying why it still holds; then this issue may be closed."""
def marker(kind: str, ids: list[str]) -> str: