Skip to content

Propagate changes from main into development#993

Merged
Wikid82 merged 2 commits intodevelopmentfrom
main
May 1, 2026
Merged

Propagate changes from main into development#993
Wikid82 merged 2 commits intodevelopmentfrom
main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 1, 2026

Automated PR to propagate changes from main into development.

Triggered by push to main.

When docker-build.yml skips the build for renovate/chore PRs, no
docker image artifact is uploaded. Previously, security-pr.yml would
crash with reason_category=not_found when the artifact was missing,
treating an intentional skip as a hard failure.

The fix distinguishes "artifact not found" from API errors: missing
artifacts now set artifact_exists=false and exit cleanly. The download
and image-load steps are guarded by this output, so the entire artifact
path is skipped gracefully. Downstream scan steps were already gated
on artifact_exists==true, so no further changes are needed.

Renovate dependency PRs will now produce a passing (no-op) security
scan job rather than a failed one.
@github-advanced-security
Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@Wikid82 Wikid82 marked this pull request as ready for review May 1, 2026 01:32
Copilot AI review requested due to automatic review settings May 1, 2026 01:32
@Wikid82 Wikid82 merged commit a5007c7 into development May 1, 2026
34 of 36 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Propagates updates from main into development by adjusting the security PR workflow to treat missing build artifacts as a non-fatal condition and skip downstream steps.

Changes:

  • Change missing-artifact handling from failing the job to exiting successfully with an output flag.
  • Gate artifact download and Docker image loading on a new artifact_exists output.

Comment on lines 228 to 235
if [[ -z "${ARTIFACT_ID}" ]]; then
echo " reason_category=not_found"
echo "reason=Required artifact was not found"
echo "⚠️ reason_category=not_found"
echo "reason=Artifact not found — build was likely skipped (e.g., renovate/chore PR)"
echo "upstream_run_id=${RUN_ID}"
echo "artifact_name=${ARTIFACT_NAME}"
exit 1
echo "artifact_exists=false" >> "$GITHUB_OUTPUT"
exit 0
fi
Copy link

Copilot AI May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow now gates downstream steps on steps.check-artifact.outputs.artifact_exists == 'true', but this diff only sets artifact_exists=false in the not-found branch. Unless artifact_exists=true is written to $GITHUB_OUTPUT in the found-artifact path elsewhere in this step, artifact_exists will be empty and both the download and load steps will be skipped even when the artifact exists. Ensure the found-artifact path sets artifact_exists=true (and does so before the step exits) so the gating condition works as intended.

Copilot uses AI. Check for mistakes.

- name: Download PR image artifact
if: github.event_name == 'workflow_run' || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'workflow_run' || github.event_name == 'workflow_dispatch') && steps.check-artifact.outputs.artifact_exists == 'true'
Copy link

Copilot AI May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow now gates downstream steps on steps.check-artifact.outputs.artifact_exists == 'true', but this diff only sets artifact_exists=false in the not-found branch. Unless artifact_exists=true is written to $GITHUB_OUTPUT in the found-artifact path elsewhere in this step, artifact_exists will be empty and both the download and load steps will be skipped even when the artifact exists. Ensure the found-artifact path sets artifact_exists=true (and does so before the step exits) so the gating condition works as intended.

Copilot uses AI. Check for mistakes.

- name: Load Docker image
if: github.event_name == 'workflow_run' || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'workflow_run' || github.event_name == 'workflow_dispatch') && steps.check-artifact.outputs.artifact_exists == 'true'
Copy link

Copilot AI May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow now gates downstream steps on steps.check-artifact.outputs.artifact_exists == 'true', but this diff only sets artifact_exists=false in the not-found branch. Unless artifact_exists=true is written to $GITHUB_OUTPUT in the found-artifact path elsewhere in this step, artifact_exists will be empty and both the download and load steps will be skipped even when the artifact exists. Ensure the found-artifact path sets artifact_exists=true (and does so before the step exits) so the gating condition works as intended.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions Bot commented May 1, 2026

✅ Supply Chain Verification Results

PASSED

📦 SBOM Summary

  • Components: 1485

🔍 Vulnerability Scan

Severity Count
🔴 Critical 0
🟠 High 0
🟡 Medium 5
🟢 Low 2
Total 7

📎 Artifacts

  • SBOM (CycloneDX JSON) and Grype results available in workflow artifacts

Generated by Supply Chain Verification workflow • View Details

@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants