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

Code scanning items are not attributed to the image tag they exist on #291

Closed
GROwen opened this issue Sep 2, 2024 · 0 comments
Closed
Assignees

Comments

@GROwen
Copy link
Contributor

GROwen commented Sep 2, 2024

Describe the bug
When Trivy scheduled scans are executed they run on both the 5.x and 6.x branches however on the Code Scanning dashboard the associated CVEs are attributed to the branch that ran the workflow. For scheduled events that is whatever the default branch is set to.

To Reproduce
Execute the workflow vulnerability-scan-schedule-5.x.ym

In an attempt to achieve the desired behaviour I've created a reusable workflow in branch 'A' that is called from another branch, branch 'B'

Expected behavior
The code scanning advisories listing attributes the advisory to the ref/tag of the package or ref/tag of the actions/checkout step

Using the above example of branch 'A' and 'B' I would expect the advisories to be attributed to branch 'B'

A further example
i.e. from the workflow in the feature/specify-branch-on-scan-5.x branch

      - uses: actions/checkout@v4
        with:
          ref: 5.x

I would expect/desire that the advisories in code scanning are attributed to 5.x

Actual behaviour
The code scanning advisories listing attributes the advisory to the ref/tag of the branch that executed the workflow, in the below example 6.x

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