Skip to content
Draft
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
35 changes: 35 additions & 0 deletions .github/workflows/release-sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Submit release dependency evidence

on:
release:
types: [published]

permissions:
contents: read

jobs:
submit:
runs-on: ubuntu-latest
steps:
- name: Generate scoped collector token
id: collector-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.RELEASE_SBOM_DISPATCH_APP_ID }}
private-key: ${{ secrets.RELEASE_SBOM_DISPATCH_APP_PRIVATE_KEY }}
owner: privy-io
repositories: security-automations

- name: Dispatch published npm release collection
env:
GH_TOKEN: ${{ steps.collector-token.outputs.token }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
version="${RELEASE_TAG#v}"
gh workflow run release-sbom-collect.yml \
--repo privy-io/security-automations \
--ref main \
-f package="@privy-io/node" \
-f version="$version" \
-f dry_run=false \
-f latest_only=false
Loading