fix: missing config-file for github action scanning#5376
fix: missing config-file for github action scanning#5376jakobmoellerdev merged 3 commits intoexternal-secrets:mainfrom
Conversation
babdf53 to
adeab55
Compare
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>
adeab55 to
a626ff4
Compare
|
So this still fails, but if I make the config files to an incorrect path it actually fails the whole action. So this is trying to load the config to check for from main. I'm guessing this will pass after its merged. |
|
If not, some more digging is in order. |
yeah it runs this of of main and the config files in main, which I guess is a security feature so somebody can't modify it in a PR and thus make their PR pass the codeql checks. |
|
Agreed. |
|
Not sure here, shouldnt the config be autodetected and generated? Why is this suddenly needed? Maybe im missing the picture. Also why do we disable the default queries? |
|
@jakobmoellerdev It's not autogenerated. It will not be detected because it needs to sit on main. And the config is the recommended CodeQL config taken from here: https://github.com/GitHubSecurityLab/CodeQL-Community-Packs/blob/main/configs/synthetics.yml with the slight modification of removing anything irrelevant. :) |
|
Then how did we have running scans without config before? https://github.com/external-secrets/external-secrets/blob/5f8b19ac0220b281750fe2dd2cffb069f4e4bca5/.github/workflows/codeql.yml is there a default thats usually drawn? |
|
It's only required because I added actions. Before that, everything was fine. 🤔 |
jakobmoellerdev
left a comment
There was a problem hiding this comment.
I still think that by default this shouldnt have been needed. lets add it and observe the workflows though. I will double check this at a later stage but dont wanna block the PR
|
…#5376) Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Co-authored-by: Jakob Möller <jakob.moeller@sap.com> Signed-off-by: Samuel Molling <samuelmolling@gmail.com>



Problem Statement
Fixes this error: https://github.com/external-secrets/external-secrets/pull/5368/checks?check_run_id=51328131555
Related Issue
Fixes #...
Proposed Changes
How do you like to solve the issue and why?
Format
Please ensure that your PR follows the following format for the title:
Where
scopeis optionally one of:Checklist
git commit --signoffmake testmake reviewable