Skip to content

ci(security): scan PRs automatically instead of manual dispatch - #659

Merged
pirog-spb merged 3 commits into
mainfrom
fix/ci-security-scan-auto
Oct 4, 2026
Merged

pirog-spb merged 3 commits into
mainfrom
fix/ci-security-scan-auto

Conversation

@pirog-spb

Copy link
Copy Markdown
Collaborator

Run Security scan on pull_request (opened, synchronize, reopened) so the required scan-result check is produced automatically for every PR instead of requiring a manual workflow_dispatch run from the Actions tab.

Intermediate pushes stay cheap thanks to the existing concurrency block (cancel-in-progress): a new commit in a PR cancels the previous scan run; only the latest head SHA gets a full scan.

workflow_dispatch is kept for manual re-runs; push to main and the weekly schedule are unchanged. All scan jobs remain on self-hosted runners.

pirog-spb added 3 commits October 5, 2026 01:23
Run Security scan on pull_request (opened, synchronize, reopened) so
the required scan-result check is produced automatically for every PR
instead of requiring a manual workflow_dispatch run from the Actions
tab.

Intermediate pushes stay cheap thanks to the existing concurrency
block (cancel-in-progress): a new commit in a PR cancels the previous
scan run; only the latest head SHA gets a full scan.

workflow_dispatch is kept for manual re-runs; push to main and the
weekly schedule are unchanged. All scan jobs remain on self-hosted
runners.

Signed-off-by: pirog-spb <[email protected]>
needs.result.build-image is parsed as subtraction
(needs.result.build minus image) in GitHub Actions expressions, so
every check in the scan-result aggregate substituted an empty string
and the job always failed with:

  if [ "" != "success" ]; then ...; failed=1; fi

Use the bracket syntax needs.result['build-image'] instead.

Signed-off-by: pirog-spb <[email protected]>
The badge links still referenced trivy.yml, which was replaced by
security-scan.yml in #656, so the 'Security' badge in the README
went dead.

Signed-off-by: pirog-spb <[email protected]>
@pirog-spb
pirog-spb merged commit 9062953 into main Oct 4, 2026
10 checks passed
pirog-spb added a commit that referenced this pull request Oct 31, 2026
Signed-off-by: pirog-spb <[email protected]>
(cherry picked from commit 9062953)
Signed-off-by: pirog-spb <[email protected]>
pirog-spb added a commit that referenced this pull request Oct 31, 2026
Signed-off-by: pirog-spb <[email protected]>
(cherry picked from commit 9062953)
Signed-off-by: pirog-spb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant