From b19f1ef76f3cbfadc1a95b9d669c272ba7f02ef5 Mon Sep 17 00:00:00 2001 From: Daniel Marschall <28412477+danielmarschall@users.noreply.github.com> Date: Mon, 3 Aug 2026 09:17:05 +0200 Subject: [PATCH] Add SBOM (Software Bill of Materials) for the EU Cyber Resilience Act (EU CRA) (#15732) * Update flutter-build.yml to generate SBOM * SBOM Generation: Also checkout submodules Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .github/workflows/flutter-build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 2491789e6..63526f95e 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -53,6 +53,34 @@ env: SIGN_BASE_URL: "${{ secrets.SIGN_BASE_URL }}-2" jobs: + generate-sbom: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + submodules: recursive + + - name: Install Syft + uses: anchore/sbom-action/download-syft@v0 + + - name: Generate SBOM + run: | + syft dir:. \ + -o cyclonedx-json=rustdesk.sbom.json + + - name: Publish Release + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1 + if: env.UPLOAD_ARTIFACT == 'true' + with: + prerelease: true + tag_name: ${{ env.TAG_NAME }} + files: | + rustdesk.sbom.json + generate-bridge: uses: ./.github/workflows/bridge.yml