diff --git a/osv-followup/__pycache__/followup.cpython-314.pyc b/osv-followup/__pycache__/followup.cpython-314.pyc index 35521e3..8a5d0c1 100644 Binary files a/osv-followup/__pycache__/followup.cpython-314.pyc and b/osv-followup/__pycache__/followup.cpython-314.pyc differ diff --git a/osv-followup/followup.py b/osv-followup/followup.py index 9d1ff79..591984e 100644 --- a/osv-followup/followup.py +++ b/osv-followup/followup.py @@ -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-` from `{base}`, commit, push, then create the PR against `{base}` (`mcp__local_git_ops__create_pull_request`). Its body starts with `Closes #` 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-`, created from `{base}` (`git checkout -b osv/issue- 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 #` 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-` from `{base}`, PR against `{base}` (`mcp__local_git_ops__create_pull_request`), body starting with `Closes #` 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-`, 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 #` 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: