File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 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."
Original file line number Diff line number Diff line change 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
66on :
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"
Original file line number Diff line number Diff line change 1212 DOTNET_VERSION : ' 9.0.x' # set this to the dot net version to use
1313
1414permissions :
15- contents : read
15+ contents : write
1616 id-token : write # required to upload artifacts
1717
1818jobs :
You can’t perform that action at this time.
0 commit comments