Skip to content

Commit

Permalink
Only run SBOM action once
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Oct 16, 2024
1 parent 9d1cdd2 commit 35e8c9c
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ permissions:
pull-requests: write

jobs:
# Run as a separate job outside the Dart SDK matrix below,
# since we can only emit a single SBOM.
create-sbom-release-asset:
name: Create SBOM Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: dart-lang/setup-dart@v1
with:
sdk: 2.19.6 # This version doesn't matter so long as it resolves.
- run: dart pub get
- name: Publish SBOM to Release Assets
uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json

build:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -107,11 +124,6 @@ jobs:
if: always() && steps.install.outcome == 'success' && steps.build.outcome == 'success'
timeout-minutes: 5

- uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json

validate_analyzer:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 35e8c9c

Please sign in to comment.