Skip to content

Commit 9ff9a86

Browse files
committed
Update DAST ZAP workflow to start application if not running and fix SBOM workflow permissions
1 parent c046501 commit 9ff9a86

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/DAST-ZAP-Zed-Attach-Proxy-Checkmarx.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
if ! curl -s --head --request GET ${{ env.ZAP_TARGET }} | grep "200 OK" > /dev/null; then
4040
echo "Application is not running. Building and starting the application..."
4141
docker build ./src/webapp01 --file ./src/webapp01/Dockerfile -t ${{ env.imageName }}:${{ env.tag }}
42+
echo "Starting the application..."
4243
docker run -d --rm -p ${{ env.HOST_PORT }}:${{ env.CONTAINER_PORT }} ${{ env.imageName }}:${{ env.tag }}
4344
else
4445
echo "Application is already running."

.github/workflows/SCA-Anchore-Syft-SBOM.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# https://github.com/anchore/syft
22
# https://github.com/anchore/sbom-action
33

4-
name: CSA - Anchore Syft SBOM Scan
4+
name: SCA - Anchore Syft SBOM Scan
55

66
on:
77
push:
@@ -35,10 +35,10 @@ jobs:
3535
uses: anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a
3636
with:
3737
image: "${{ env.imageName }}:${{ env.tag }}"
38-
artifact-name: image.spdx.json
38+
artifact-name: sbom.spdx
3939
dependency-snapshot: true
4040

4141
- name: SBOM upload
4242
uses: advanced-security/spdx-dependency-submission-action@v0.1.1
4343
with:
44-
filePath: "image.spdx.json"
44+
filePath: "sbom.spdx"

.github/workflows/SCA-Microsoft-SBOM.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
DOTNET_VERSION: '9.0.x' # set this to the dot net version to use
1313

1414
permissions:
15-
contents: read
15+
contents: write
1616
id-token: write # required to upload artifacts
1717

1818
jobs:

0 commit comments

Comments
 (0)