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

How to use with PR and Branch #64

Open
ArneRiemann4711 opened this issue Feb 14, 2024 · 0 comments
Open

How to use with PR and Branch #64

ArneRiemann4711 opened this issue Feb 14, 2024 · 0 comments

Comments

@ArneRiemann4711
Copy link

ArneRiemann4711 commented Feb 14, 2024

We follow a kind of golden binary scenario and release our feature branches.

Unfortunately, the action doesn't really seem to work with pull requests and branches ? We would like to submit the dependency graph of the last build.

name: sbom-submit

defaults:
  run:
    working-directory: service

on:
  push:
    branches-ignore:
      - "main"

jobs:
  create-sbom:
    runs-on: ubuntu-latest
    permissions:
        contents: write 
    steps:
      - uses: actions/checkout@v3

      - name: Setup Java (SBOM)
        uses: actions/setup-java@v3
        with:
          java-version: 17
          distribution: 'corretto'

      - name: Make mvnw executable (SBOM)
        run: chmod +x mvnw
        
      - name: Submit Dependency Snapshot (SBOM)
        uses: advanced-security/maven-dependency-submission-action@v4
        with:
         directory: ${{ github.workspace }}/service
         snapshot-ref: ${{ github.event.pull_request.head.ref }}

Everything is "green" but the Graph is not updated. When running in main branch everything works as expected. Any ideas or suggestions?

  • Tested with GITHUB_TOKEN
  • Tested with Personal-Access-Token and REPO permissions
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