Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SBOM step in workflow is failing #29

Merged
merged 3 commits into from
Apr 5, 2023
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
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ jobs:
dotnet dotcover test Action/PostMediumGitHubAction.sln --dcReportType=HTML
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag

- uses: philips-software/[email protected]

- name: Generate SBOM
run: |
mkdir sbom
sbom-tool generate -b ./sbom -bc . -pn post-to-medium-action -pv v0.4.2 -nsb https://github.com/philips-software/post-to-medium-action
sbom-tool generate -b ./sbom -bc . -ps Philips -pn post-to-medium-action -pv ${{ steps.get-latest-tag.outputs.tag }} -nsb https://github.com/philips-software/post-to-medium-action
- uses: actions/upload-artifact@v3
with:
name: sbom
Expand Down
2 changes: 1 addition & 1 deletion Action/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set the base image as the .NET 6.0 SDK (this includes the runtime)
FROM mcr.microsoft.com/dotnet/sdk:6.0 as build-env
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env

# Copy everything and publish the release (publish implicitly restores and builds)
COPY . ./
Expand Down