Compare commits
4
Commits
5a7bade11c
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7827c60fb8 | ||
|
|
313da60c78 | ||
|
|
f6a5ec2331 | ||
|
|
d133a60b0b |
No files matched your search
@@ -58,9 +58,9 @@ to the images they name, or wherever the package appears. The repo's complete
|
|||||||
set each run; a removed statement withdraws its decisions. A rejected file
|
set each run; a removed statement withdraws its decisions. A rejected file
|
||||||
(invalid JSON, `not_affected` without justification or reason) fails the job.
|
(invalid JSON, `not_affected` without justification or reason) fails the job.
|
||||||
|
|
||||||
## `osv-followup` — weekly advisories to Claude, monthly re-check (v2.4)
|
## `osv-followup` — weekly advisories to Claude, monthly re-check (v2.4.1)
|
||||||
|
|
||||||
`uses: https://git.janhouse.lv/janhouse/sbom-tools-action/[email protected]`
|
`uses: https://git.janhouse.lv/janhouse/sbom-tools-action/[email protected].1`
|
||||||
is the follow-up half of `scan`: `scan` reports, `osv-followup` gets every
|
is the follow-up half of `scan`: `scan` reports, `osv-followup` gets every
|
||||||
advisory decided.
|
advisory decided.
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ jobs:
|
|||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: https://git.janhouse.lv/janhouse/sbom-tools-action/[email protected]
|
- uses: https://git.janhouse.lv/janhouse/sbom-tools-action/[email protected].1
|
||||||
with:
|
with:
|
||||||
mode: ${{ (inputs.recheck == true || inputs.recheck == 'true') && 'recheck' || 'auto' }}
|
mode: ${{ (inputs.recheck == true || inputs.recheck == 'true') && 'recheck' || 'auto' }}
|
||||||
recheck-cron: '47 6 1 * *'
|
recheck-cron: '47 6 1 * *'
|
||||||
|
|||||||
Binary file not shown.
@@ -22,7 +22,7 @@ author: 'janhouse'
|
|||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
# - uses: https://git.janhouse.lv/janhouse/sbom-tools-action/[email protected]
|
# - uses: https://git.janhouse.lv/janhouse/sbom-tools-action/[email protected].1
|
||||||
# with:
|
# with:
|
||||||
# mode: ${{ (inputs.recheck == true || inputs.recheck == 'true') && 'recheck' || 'auto' }}
|
# mode: ${{ (inputs.recheck == true || inputs.recheck == 'true') && 'recheck' || 'auto' }}
|
||||||
# recheck-cron: '47 6 1 * *'
|
# recheck-cron: '47 6 1 * *'
|
||||||
@@ -142,7 +142,7 @@ runs:
|
|||||||
SERVER_URL: ${{ github.server_url }}
|
SERVER_URL: ${{ github.server_url }}
|
||||||
REPOSITORY: ${{ github.repository }}
|
REPOSITORY: ${{ github.repository }}
|
||||||
SHA: ${{ github.sha }}
|
SHA: ${{ github.sha }}
|
||||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}
|
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
ACTION_DIR: ${{ github.action_path }}
|
ACTION_DIR: ${{ github.action_path }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
@@ -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"))'`.
|
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.
|
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."""
|
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"))'`.
|
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:
|
def marker(kind: str, ids: list[str]) -> str:
|
||||||
|
|||||||
@@ -104,6 +104,10 @@ runs:
|
|||||||
CONTAINER_IMAGE: ${{ inputs.container-image }}
|
CONTAINER_IMAGE: ${{ inputs.container-image }}
|
||||||
CONTAINER_SKIP: ${{ inputs.container-skip-files }}
|
CONTAINER_SKIP: ${{ inputs.container-skip-files }}
|
||||||
TRIVY_TIMEOUT: ${{ inputs.trivy-timeout }}
|
TRIVY_TIMEOUT: ${{ inputs.trivy-timeout }}
|
||||||
|
# cyclonedx-cli is .NET: without libicu on the runner (gamer) it aborts with
|
||||||
|
# "Couldn't find a valid ICU package" (exit 134). It only merges JSON, so
|
||||||
|
# invariant globalization is all it needs.
|
||||||
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: "1"
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
trivy fs "$SCAN_PATH" --quiet --timeout "$TRIVY_TIMEOUT" --format cyclonedx --output source-sbom.json
|
trivy fs "$SCAN_PATH" --quiet --timeout "$TRIVY_TIMEOUT" --format cyclonedx --output source-sbom.json
|
||||||
|
|||||||
Reference in new issue
Block a user