From 1f23756ed3d8dcab6e1315273fa0e4ac2e41edbb Mon Sep 17 00:00:00 2001 From: lefosg <47362786+lefosg@users.noreply.github.com> Date: Thu, 5 Jun 2025 15:40:00 +0300 Subject: [PATCH 1/2] sign sbom --- .github/workflows/auto-release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 3477f6591..3274b565f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -94,6 +94,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 }} From 2da35debfda2a41a8b5b5b5154458d596e8ea4d2 Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Thu, 31 Jul 2025 08:02:23 +0530 Subject: [PATCH 2/2] Add missing cast to BaseType_t (#1301) Signed-off-by: Gaurav Aggarwal --- tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index 24cfb2620..1e6ecdc9e 100644 --- a/tasks.c +++ b/tasks.c @@ -893,7 +893,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION; BaseType_t xCurrentCoreTaskPriority; BaseType_t xLowestPriorityCore = ( BaseType_t ) -1; BaseType_t xCoreID; - const BaseType_t xCurrentCoreID = portGET_CORE_ID(); + const BaseType_t xCurrentCoreID = ( BaseType_t ) portGET_CORE_ID(); #if ( configRUN_MULTIPLE_PRIORITIES == 0 ) BaseType_t xYieldCount = 0;