Skip to content

Commit

Permalink
Update security.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
emrecanvurallll authored Feb 8, 2025
1 parent 6a05f22 commit dcdcd48
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,27 @@ on:
pull_request:

jobs:
# 1) Build Job
build:
name: Build
runs-on: ubuntu-20.04
build-and-syft:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Build an image from Dockerfile
- name: Build Docker image
run: |
docker build -t juice-shop:${{ github.sha }} .
- name: Syft SBOM Scan
uses: anchore/sbom-action@v0
with:
image: "juice-shop:${{ github.sha }}"
output-file: "sbom.spdx.json"
format: "spdx-json"

# 2) SAST (Semgrep) Job
Sast-scan:
name: SAST (Semgrep)
needs: build
needs: build-and-syft
runs-on: ubuntu-20.04
container: returntocorp/semgrep
steps:
Expand Down

0 comments on commit dcdcd48

Please sign in to comment.