Skip to content

370 twistlock scan - #128

Open
tracy18 wants to merge 13 commits into
3.7.0from
370-twistlock-scan
Open

370 twistlock scan#128
tracy18 wants to merge 13 commits into
3.7.0from
370-twistlock-scan

Conversation

@tracy18

@tracy18 tracy18 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Overview

N/A

Change Details (Specifics)

N/A

Related Ticket(s)

N/A

Copilot AI balanced review requested due to automatic review settings August 25, 2026 14:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Twistlock container scanning after image builds and updates key GitHub Actions dependencies.

Changes:

  • Adds per-image Twistlock scans and aggregated vulnerability reporting.
  • Integrates scan results into workflow gating and Slack notification dependencies.
  • Upgrades checkout and AWS credential actions.
Suppressed comments (1)

.github/workflows/build-all.yml:324

  • Certificate validation is also disabled on this authenticated request, exposing the Twistlock credentials to interception. Use the trusted system CA or an explicitly configured internal CA rather than --insecure.
              --insecure \

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


TWISTLOCK_PATH="${RUNNER_TEMP}/twistcli"

curl --fail --silent --show-error --location --insecure -u "${{ secrets.TWISTLOCK_USERNAME }}:${{ secrets.TWISTLOCK_PASSWORD }}" --output "${TWISTLOCK_PATH}" "${TWISTLOCK_URL}/api/v1/util/twistcli"
gh_out.write("critical_count=0\n")
gh_out.write("high_count=0\n")
gh_out.write("has_critical_or_high=false\n")
sys.exit(0)
Comment on lines +544 to +546
- name: Fail if any image has critical/high vulnerabilities
#if: env.ANY_CRITICAL_OR_HIGH == 'true'
if: needs.twistlock_scan.result == 'failure'
name: Slack Notification
runs-on: ubuntu-latest
needs: [build]
needs: [build, twistlock_scan, twistlock_summary]
Comment on lines +242 to +243
outputs:
backend_scan_result: ${{ steps.set_scan_output.outputs.scan_result }}
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.

3 participants