mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-10 16:17:44 -04:00
Compare commits
4 commits
aa7129f5f4
...
aa098acf14
Author | SHA1 | Date | |
---|---|---|---|
|
aa098acf14 | ||
|
e3a362b1d1 | ||
|
4bc8d25cec | ||
|
1f23756ed3 |
1 changed files with 22 additions and 0 deletions
22
.github/workflows/auto-release.yml
vendored
22
.github/workflows/auto-release.yml
vendored
|
@ -18,6 +18,8 @@ on:
|
|||
|
||||
jobs:
|
||||
release-packager:
|
||||
permissions:
|
||||
id-token: write
|
||||
name: Release Packager
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -94,6 +96,18 @@ jobs:
|
|||
repo_path: ./local_kernel
|
||||
source_path: ./
|
||||
|
||||
# 1. Install cosign tool
|
||||
- name: Install Cosign
|
||||
uses: sigstore/cosign-installer@v3.8.1
|
||||
|
||||
# 2. Sign the sbom.spdx file using cosign. Two files are produced: sbom.sig and sbom.crt, stored in the same directory as sbom.spdx
|
||||
- name: Attest SBOM
|
||||
working-directory: ./local_kernel
|
||||
run: |
|
||||
cosign sign-blob sbom.spdx --output-certificate='sbom.crt' --output-signature='sbom.sig' -y
|
||||
# The following is a sanity check. After signing, we verify the image to check that everything is OK
|
||||
cosign verify-blob --signature='sbom.sig' --certificate='sbom.crt' --certificate-identity-regexp=.* --certificate-oidc-issuer-regexp='https://github.com' ./sbom.spdx
|
||||
|
||||
- name: commit SBOM file
|
||||
env:
|
||||
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
|
||||
|
@ -117,6 +131,14 @@ jobs:
|
|||
./tools/.github/scripts/release.py "$REPO_OWNER" --kernel-repo-path=local_kernel --kernel-commit="$COMMIT_SHA_2" --new-kernel-version="$VERSION_NUMBER" --new-kernel-main-br-version="$MAIN_BR_VERSION_NUMBER"
|
||||
exit $?
|
||||
|
||||
- name: Backup Release Asset
|
||||
uses: FreeRTOS/CI-CD-Github-Actions/artifact-backup@main
|
||||
with:
|
||||
# This is dependent on the release script putting this zip file
|
||||
# in this exact location.
|
||||
artifact_path: ./tools/.github/scripts/FreeRTOS-KernelV${{ github.event.inputs.version_number }}.zip
|
||||
release_tag: ${{ github.event.inputs.version_number }}
|
||||
|
||||
- name: Cleanup
|
||||
env:
|
||||
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue