-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 1.33 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: build
run-name: Build steps for ${{ github.sha }} on ${{ github.ref_name }}
on:
workflow_call:
outputs:
rock:
description: "rock image"
value: ${{ jobs.build.outputs.rock }}
jobs:
build:
runs-on: ubuntu-latest
outputs:
rock: ${{ steps.set.outputs.rock }}
steps:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: canonical/craft-actions/rockcraft-pack@main
id: rockcraft
- name: Set rock output
id: set
run: echo "rock=${{ steps.rockcraft.outputs.rock }}" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
with:
path: ${{ steps.rockcraft.outputs.rock }}
name: ${{ steps.rockcraft.outputs.rock }}
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- name: Create SBOM
run: syft $(realpath ${{ steps.rockcraft.outputs.rock }}) -o spdx-json=identity_platform_login_ui.sbom.json
- name: Upload SBOM
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
with:
name: identity-platform-login-ui-sbom
path: "identity_platform_login_ui.sbom.json"