Skip to content

Don't use CodeQL in reusable workflow #220

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

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

lukaszstolarczuk
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk commented Feb 7, 2024

Due to lower score on Scorecard we'll be running this separately from "PR/push" workflow. For some reason permissions weren't properly set or recognized (by Scorecard). If Scorecard changes its behavior we can go back to use 'workflow_call' trigger.

// I verified this fixes the "Token-permission" issue on my fork.

@lukaszstolarczuk lukaszstolarczuk requested a review from a team as a code owner February 7, 2024 14:58
Due to lower score on Scorecard we'll be running this separately from
"PR/push" workflow. For some reason permissions weren't properly set
or recognized (by Scorecard). If Scorecard changes its behavior we can
go back to use 'workflow_call' trigger.
@bratpiorka
Copy link
Contributor

so this is all about setting securityEvents permissions to write?

@wlemkows
Copy link
Contributor

wlemkows commented Feb 8, 2024

so this is all about setting securityEvents permissions to write?

Yes, this change is necessary to achieve the required scorecard result in Q1. In the case of using reusable workflows scorecard did not allow setting "write" at the job level. It is hard for me to say whether it is a bug or a feature :) We decided to make the simplest and fastest change that will improve our score.

@wlemkows wlemkows merged commit 8931442 into oneapi-src:main Feb 8, 2024
@lukaszstolarczuk lukaszstolarczuk deleted the codeql-permissions branch February 8, 2024 10:31
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

Successfully merging this pull request may close these issues.

4 participants