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

on:
release:
types: [published]

permissions:
contents: read

jobs:
submit:
runs-on: ubuntu-latest
steps:
- name: Check out the immutable release
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 1
persist-credentials: false

- name: Resolve released commit
id: release
run: echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"

- 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 immutable release collection
env:
GH_TOKEN: ${{ steps.collector-token.outputs.token }}
RELEASED_COMMIT: ${{ steps.release.outputs.commit }}
run: |
gh workflow run release-sbom-collect-sdk-release.yml \
--repo privy-io/security-automations \
--ref main \
-f source_repository="${{ github.repository }}" \
-f source_commit="$RELEASED_COMMIT" \
-f release="${{ github.event.release.tag_name }}" \
-f package_name="com.privy.unity-sdk" \
-f ecosystem="upm"
Loading