-
Notifications
You must be signed in to change notification settings - Fork 71
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
Duplicate Rule Error for Sarif File #1076
Comments
The duplicate rule is the
|
mhh, that's interesting, we've never seen this error before. Can you link to a run of the Action to help us see ur logs? |
@laurentsimon here's a link to a recent run of ours: https://github.com/deislabs/ratify/actions/runs/4011814994/jobs/6889735657 |
So you're using the latest version, which is good. I was not able to reproduce on my end. From the logs, it seems that the CITestsID is absent, and CodeReviewID appears twice. Other repos that use the same version of the Action run just fine, so something else is going on. Would you be able to add the following workflow to your repo and trigger it manually: https://github.com/laurentsimon/scorecard-action-test-2/blob/main/.github/workflows/test.yml I'd like to see the logs for anything suspicious. If we're at least able to reproduce the SARIF problems but not find the root cause, I'l make a build that logs more. Will take a bit of fiddling around. If you have another repo where you can reproduce the problem, I'd use that instead and I could troubleshoot in the repo instead. |
Interestingly, this problem doesn't occur for forked repos with the exact same workflow files. Unfortunately, we have stricter governance standards for merging to our main branch and updating the workflow might be challenging. I want to try running it on the non default branch but the current workflow we have doesn't seem to allow it? Is there a specific setting to enable to run on a different branch? |
I think you may need to commit it to the branch you control and use "on: push" trigger. Then push to the branch. Would that work? |
I was able to create a separate branch and updated the existing workflow file to run on Pull Request trigger. (from the scorecard code, it seems like it will only run if it's not default branch or its a pull request). the workflow was successful from the new branch. So it seems to be isolated to the main branch: https://github.com/deislabs/ratify/actions/runs/4019713495 |
I see. I need to be able to reproduce the problem to troubleshoot it. Any other ideas? |
Thanks for taking a look. I'm wondering if there's some special setting/rule configured for our default |
I've set up the ossf/scorecard-action to run for a project I'm working on. We started seeing errors from the action saying the outputted Sarif file is not valid (see below):
The workflow file we use is almost identical to the sample in the documentation: Here is the workflow file we use:
Could I get some guidance on what the issue might be? As far as I understand, the rules are default and come preset with the OSSF action?
The text was updated successfully, but these errors were encountered: