You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Error running analysis for go: Cannot read properties of undefined (reading 'includes')
Warning: Caught an exception while gathering information for telemetry: TypeError: Cannot read properties of undefined (reading 'join'). Will skip sending status report.
@melinath to add to what @hvitved wrote earlier, the problem with your failed run was that you had pinned 05963f47d870e2cb19a537396c1f668a348c7d8f for the init and autobuild steps in your CodeQL workflow, but used v3 for the analyze step. 05963f47d870e2cb19a537396c1f668a348c7d8f is an ancient version of the CodeQL Action, while v3 gets you the latest version.
Mixing versions of the CodeQL Action between steps in your workflow is not supported and can lead to unpredictable behaviour. Your change in GoogleCloudPlatform/magic-modules#15104 now pins 3c3833e0f8c1c83d449a7478aa59c036a9165498 for analyze, but keeps 05963f47d870e2cb19a537396c1f668a348c7d8f for the other two CodeQL Action steps.
At the very least, you should use the same SHA for all codeql-action steps in your workflow, as @hvitved has already suggested. Given this issue, we are now adding checks to ensure that different versions of the CodeQL Action are not mixed in a given workflow:
However, we would generally advise that you keep the version of the codeql-action you use up-to-date (e.g. using Dependabot or by pinning v3). We only offer limited support for older versions of the CodeQL Action.
Makes sense, thanks for pointing that out! It looks like we missed pinning the last command in our initial commit and just got lucky until now. Validation to make sure the versions are the same sounds like a great improvement, thanks!
Activity
hvitved commentedon Sep 10, 2025
Hi
This is likely because you use two different SHAs (
05963f47d870e2cb19a537396c1f668a348c7d8fand3c3833e0f8c1c83d449a7478aa59c036a9165498) in https://github.com/GoogleCloudPlatform/magic-modules/blob/main/.github/workflows/codeql.yml. Does it work if you replace the two05963f47d870e2cb19a537396c1f668a348c7d8foccurrences with3c3833e0f8c1c83d449a7478aa59c036a9165498?mbg commentedon Sep 10, 2025
@melinath to add to what @hvitved wrote earlier, the problem with your failed run was that you had pinned
05963f47d870e2cb19a537396c1f668a348c7d8ffor theinitandautobuildsteps in your CodeQL workflow, but usedv3for theanalyzestep.05963f47d870e2cb19a537396c1f668a348c7d8fis an ancient version of the CodeQL Action, whilev3gets you the latest version.Mixing versions of the CodeQL Action between steps in your workflow is not supported and can lead to unpredictable behaviour. Your change in GoogleCloudPlatform/magic-modules#15104 now pins
3c3833e0f8c1c83d449a7478aa59c036a9165498foranalyze, but keeps05963f47d870e2cb19a537396c1f668a348c7d8ffor the other two CodeQL Action steps.At the very least, you should use the same SHA for all
codeql-actionsteps in your workflow, as @hvitved has already suggested. Given this issue, we are now adding checks to ensure that different versions of the CodeQL Action are not mixed in a given workflow:codeql-actionversions are the same #3099Config#3100However, we would generally advise that you keep the version of the
codeql-actionyou use up-to-date (e.g. using Dependabot or by pinningv3). We only offer limited support for older versions of the CodeQL Action.melinath commentedon Sep 10, 2025
Makes sense, thanks for pointing that out! It looks like we missed pinning the last command in our initial commit and just got lucky until now. Validation to make sure the versions are the same sounds like a great improvement, thanks!
mbg commentedon Sep 15, 2025
I think the issue for you is resolved now, and we have also merged our improved checks, so I will go ahead and close this issue now.