Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/build-and-scan-voting-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Scan Voting App Images

on:
push:
branches: [ main ]
pull_request:

jobs:
build-and-scan:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build vote image
run: docker build -t vote-app:latest ./vote

- name: Scan vote image with Sysdig
uses: sysdiglabs/scan-action@v6
with:
image-tag: vote-app:latest
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
sysdig-secure-url: ${{ secrets.SYSDIG_SECURE_URL }}