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
8 changes: 6 additions & 2 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
- name: Scan base with OSV
id: osv_base
continue-on-error: true
timeout-minutes: 8
uses: google/osv-scanner-action/osv-scanner-action@8dc09193bb540e09b23da07ad7e30bd33bf87018 # v2.3.8
with:
scan-args: |
Expand All @@ -81,10 +82,11 @@ jobs:
- name: Explain base OSV resolver fallback
if: steps.osv_base.outcome == 'failure'
run: |
echo "::warning::OSV base scan failed before reporter output was trusted; retrying with --no-resolve to avoid transient transitive registry resolution failures such as Maven Central 429. Direct manifest and lockfile vulnerability evidence remains enforced."
echo "::warning::OSV base scan failed or timed out before reporter output was trusted; retrying with --no-resolve to avoid transient transitive registry resolution failures such as Maven Central 429. Direct manifest and lockfile vulnerability evidence remains enforced."
- name: Retry base OSV without transitive resolution
if: steps.osv_base.outcome == 'failure'
continue-on-error: true
timeout-minutes: 4
uses: google/osv-scanner-action/osv-scanner-action@8dc09193bb540e09b23da07ad7e30bd33bf87018 # v2.3.8
with:
scan-args: |
Expand All @@ -105,6 +107,7 @@ jobs:
- name: Scan head with OSV
id: osv_head
continue-on-error: true
timeout-minutes: 8
uses: google/osv-scanner-action/osv-scanner-action@8dc09193bb540e09b23da07ad7e30bd33bf87018 # v2.3.8
with:
scan-args: |
Expand All @@ -117,10 +120,11 @@ jobs:
- name: Explain head OSV resolver fallback
if: steps.osv_head.outcome == 'failure'
run: |
echo "::warning::OSV head scan failed before reporter output was trusted; retrying with --no-resolve to avoid transient transitive registry resolution failures such as Maven Central 429. Direct manifest and lockfile vulnerability evidence remains enforced."
echo "::warning::OSV head scan failed or timed out before reporter output was trusted; retrying with --no-resolve to avoid transient transitive registry resolution failures such as Maven Central 429. Direct manifest and lockfile vulnerability evidence remains enforced."
- name: Retry head OSV without transitive resolution
if: steps.osv_head.outcome == 'failure'
continue-on-error: true
timeout-minutes: 4
uses: google/osv-scanner-action/osv-scanner-action@8dc09193bb540e09b23da07ad7e30bd33bf87018 # v2.3.8
with:
scan-args: |
Expand Down
3 changes: 3 additions & 0 deletions tests/test_required_workflow_queue_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ def test_osv_scan_logs_and_retries_without_transitive_resolution_on_resolver_fai
assert "steps.osv_head.outcome == 'failure'" in workflow
assert "Retry base OSV without transitive resolution" in workflow
assert "Retry head OSV without transitive resolution" in workflow
assert workflow.count("timeout-minutes: 8") == 2
assert workflow.count("timeout-minutes: 4") == 2
assert workflow.count("\n --no-resolve\n") == 2
assert workflow.count("Maven Central 429") == 2
assert workflow.count("failed or timed out before reporter output was trusted") == 2
assert "Direct manifest and lockfile vulnerability evidence remains enforced" in workflow
assert "Retry base OSV without transitive resolution\n if: steps.osv_base.outcome == 'failure'\n continue-on-error: true" in workflow
assert "Retry head OSV without transitive resolution\n if: steps.osv_head.outcome == 'failure'\n continue-on-error: true" in workflow
Expand Down
Loading