Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action stuck after successful upload #26

Open
simonknittel opened this issue Apr 4, 2024 · 0 comments
Open

Action stuck after successful upload #26

simonknittel opened this issue Apr 4, 2024 · 0 comments

Comments

@simonknittel
Copy link

I'm having the issue that after the upload finished, the action gets stuck and doesn't stop. It will run forever until it gets canceled by an action wide timeout.

My workflow file:

name: sbom-grafana

on:
  push:
    branches:
      - main
    paths:
      - .github/workflows/sbom-grafana.yml

jobs:
  generate_and_upload:
    runs-on: ubuntu-22.04
    timeout-minutes: 3
    steps:
      - uses: anchore/[email protected]
        with:
          image: grafana/grafana-oss:10.4.1
          artifact-name: sbom.cdx.json
          output-file: sbom.cdx.json
          format: cyclonedx-json

      - uses: DependencyTrack/[email protected]
        with:
          serverhostname: my-hostname
          apikey: ${{ secrets.DTRACK_APIKEY }}
          project: my-project-id
          bomfilename: sbom.cdx.json

      - uses: actions/[email protected]
        with:
          name: sbom.cdx.json
          path: sbom.cdx.json

The logs look like this:

Run DependencyTrack/gh-upload-sbom@master
Reading BOM: sbom.cdx.json...
Uploading to Dependency-Track server my-hostname...
Response status code:
Finished uploading BOM to Dependency-Track server.
Error: The operation was canceled.

image

Notably, the Response status code: is empty. Also, I can confirm that the upload finished successfully since Dependency Track shows me the correct date for Last BOM Import.

Any idea what is happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant