Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions .github/workflows/CIS-Anchore-Grype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:

permissions:
contents: read # for actions/checkout to fetch code
id-token: write
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status

Expand Down Expand Up @@ -52,3 +53,9 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

- name: Upload alerts file as a workflow artifact
uses: actions/upload-artifact@v4
with:
name: alerts
path: ${{ steps.scan.outputs.sarif }}
8 changes: 8 additions & 0 deletions .github/workflows/CIS-Trivy-AquaSecurity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:

permissions:
contents: read # for actions/checkout to fetch code
id-token: write
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status

Expand Down Expand Up @@ -47,3 +48,10 @@ jobs:
if: always()
with:
sarif_file: "trivy-results.sarif"

- name: Upload alerts file as a workflow artifact
uses: actions/upload-artifact@v4
with:
name: alerts
path: "trivy-results.sarif"

5 changes: 5 additions & 0 deletions .github/workflows/SCA-Anchore-Syft-SBOM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ jobs:
image: "${{ env.imageName }}:${{ env.tag }}"
artifact-name: image.spdx.json
dependency-snapshot: true

- name: SBOM upload
uses: advanced-security/spdx-dependency-submission-action@v0.1.1
with:
filePath: "image.spdx.json"
12 changes: 9 additions & 3 deletions .github/workflows/SCA-Microsoft-SBOM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

name: SCA - Microsoft SBOM Tool

on:
workflow_dispatch:
on:
push:
branches: [main]

env:
SRC_PROJECT_PATH: '/webapp01/webapp01.csproj'
Expand Down Expand Up @@ -37,4 +38,9 @@ jobs:
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
path: buildOutput
path: buildOutput

- name: SBOM upload
uses: advanced-security/spdx-dependency-submission-action@v0.1.1
with:
filePath: "_manifest/spdx_2.2/"
1 change: 0 additions & 1 deletion src/webapp01/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# This stage is used when running from VS in fast mode (Default for Debug configuration)
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
Expand Down
Loading