updated transitive System.Text.Encodings.Web v4.5 to latest #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SBOM upload | |
on: | |
push: | |
branches: [ main, dev ] | |
workflow_dispatch: | |
env: | |
PROJECT_PATH: ./src/saml2.authentication/saml2.authentication.csproj | |
jobs: | |
SBOM-upload: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install Dependencies | |
run: dotnet restore ${PROJECT_PATH} | |
- name: Build Solution | |
run: dotnet build ${PROJECT_PATH} | |
- name: Generate SBOM | |
uses: advanced-security/[email protected] | |
id: sbom | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: sbom | |
path: ${{steps.sbom.outputs.fileName }} | |
- name: Upload SBOM to Dependency Graph | |
uses: advanced-security/[email protected] | |
with: | |
filePath: ${{steps.sbom.outputs.fileName }}/ | |