Unverified Commit 451016be authored by Minseong Choi's avatar Minseong Choi 💬
Browse files

ci(release): write the sboms straight into dist

parent c0ee75ef
Loading
Loading
Loading
Loading
+5 −5
Changes for .github/workflows/release.yml: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -72,23 +72,23 @@ jobs:
        run: deploy/build-release-artifacts.sh "${GITHUB_REF_NAME}" dist

      # A CycloneDX SBOM per binary: the Go modules (and versions) linked into it, read
      # from the build info the linker embeds.
      # from the build info the linker embeds. Written after SHA256SUMS, so beside it in the
      # release but outside it: that lists what bootstrap installs. Straight into dist/,
      # because the action does not create a missing output directory.
      - uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
        with:
          file: dist/felis-linux-amd64
          format: cyclonedx-json
          output-file: sbom/felis-linux-amd64.cdx.json
          output-file: dist/felis-linux-amd64.cdx.json
          upload-artifact: false
          upload-release-assets: false
      - uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
        with:
          file: dist/felis-linux-arm64
          format: cyclonedx-json
          output-file: sbom/felis-linux-arm64.cdx.json
          output-file: dist/felis-linux-arm64.cdx.json
          upload-artifact: false
          upload-release-assets: false
      # Outside SHA256SUMS, which lists what bootstrap installs; beside it in the release.
      - run: mv sbom/*.cdx.json dist/

      - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
        with: