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
46 changes: 46 additions & 0 deletions .github/workflows/generate_and_release_sbom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Generate and Release SBOM

on:
workflow_call:

jobs:
generate-and-release-sbom:
name: Generate and Release SBOM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Extract version from pyproject.toml
id: version
run: |
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Load secret
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SOLUTIONS_ENGINEER_SERVICE_ACCOUNT_TOKEN }}
DT_API_KEY: "op://github-ci-solutions-engineer-team/DependencyTrack-API-KEY/API-KEY"
DT_SERVER_URL: "op://github-ci-solutions-engineer-team/DependencyTrack-API-KEY/SERVER-URL"

- uses: pdm-project/setup-pdm@v4
with:
cache: true
- run: pdm install
- run: pdm run generate:SBOM

- name: Upload SBOM to Dependency Track
uses: mlikasam-askui/dt-gh-upload-sbom@master
with:
serverUrl: ${{ env.DT_SERVER_URL }}
apiKey: ${{ env.DT_API_KEY }}
projectName: "askui-idb-mcp"
projectVersion: '${{ steps.version.outputs.version }}'
projectTags: 'askui-idb-mcp,solutions-engineer-team,public_api'
bomFilename: 'bom.json'
autocreate: 'true'
isLatestProjectVersion: 'true'
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ jobs:
cache: true
- name: Publish package distributions to PyPI
run: pdm publish
generate-and-release-sbom:
needs: pypi-publish
name: Generate and Release SBOM
uses: ./.github/workflows/generate_and_release_sbom.yaml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,4 @@ cython_debug/
marimo/_static/
marimo/_lsp/
__marimo__/
bom.json
Loading
Loading