Skip to content

Commit 580afac

Browse files
committed
sign
Signed-off-by: Anas Nashif <[email protected]>
1 parent a7a775b commit 580afac

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-24.04
1515
permissions:
1616
contents: write # to create GitHub release entry
17+
# 'id-token' needs write permission to retrieve the OIDC token, which is required for authentication.
18+
id-token: write
1719
steps:
1820
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1921
with:
@@ -57,6 +59,12 @@ jobs:
5759
draft: true
5860
prerelease: true
5961

62+
63+
# This step uses 'gh-action-sigstore-python' to sign the file designated in the inputs field.
64+
- uses: sigstore/[email protected]
65+
with:
66+
inputs: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
67+
6068
- name: Upload Release Assets (SPDX)
6169
id: upload-release-asset
6270
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
@@ -67,14 +75,3 @@ jobs:
6775
asset_path: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
6876
asset_name: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
6977
asset_content_type: text/plain
70-
71-
- name: Upload Release Assets (SBOM)
72-
id: upload-release-asset-sbom
73-
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
with:
77-
upload_url: ${{ steps.create_release.outputs.upload_url }}
78-
asset_path: zephyr-sbom-${{ steps.get_version.outputs.VERSION }}.spdx
79-
asset_name: zephyr-sbom-${{ steps.get_version.outputs.VERSION }}.spdx
80-
asset_content_type: text/plain

0 commit comments

Comments
 (0)