Skip to content

Commit

Permalink
Merge pull request #11302 from cBioPortal/dependency-graph
Browse files Browse the repository at this point in the history
update github dependency graph with docker builds
  • Loading branch information
zainasir authored Dec 23, 2024
2 parents 28c1be6 + 277c85f commit 9f9a4da
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,28 @@ jobs:
cache-from: type=gha
cache-to: type=gha

update_dependency_graph:
needs: build_and_publish_web
if: github.repository == 'cBioPortal/cbioportal' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
cbioportal/cbioportal
# Do not generate latest tag
flavor: |
latest=false
suffix=-web-shenandoah
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
- name: Update Github Dependency Graph
uses: anchore/sbom-action@v0
with:
image: cbioportal/cbioportal:${{ steps.meta.output.tags }}
dependency-snapshot: 'true'
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 9f9a4da

Please sign in to comment.