File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
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 @@ -18,8 +18,8 @@ permissions:
1818 actions : read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
1919
2020jobs :
21- kubesec-scan :
22- name : Kubesec Scan
21+ kubesec-scan-1 :
22+ name : Kubesec Scan 1
2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : Checkout code
3838 uses : github/codeql-action/upload-sarif@v3
3939 with :
4040 sarif_file : kubesec-results.sarif
41+
42+ kubesec-scan-2 :
43+ name : Kubesec Scan 2
44+ runs-on : ubuntu-latest
45+ steps :
46+ - name : Checkout code
47+ uses : actions/checkout@v4
4148
4249 - name : Run kubesec scanner (score-5-pod-serviceaccount.yaml)
4350 uses : controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14
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