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
CodeQL codesign error message #2043
Comments
|
CodeQL traces the build process to figure out how source files are compiled and against which libraries/header files etc. To do this it uses the DYLD_INSERT_LIBRARIES environment variable to inject the CodeQL tracer into the running build process. On macOS the use of The lines from the build-tracer.log above show that the CodeQL tracer is re-signing In the mean time, could you try disabling CodeSigning for your build? CodeQL analysis only needs to intercept compiler processes, steps like packaging and signing are not important for the CodeQL scan. |
|
@rnychyporuk-rbi Hopefully github/codeql#15134 will fix the problem. |
|
This will be fixed in CodeQL 2.15.5. |
|
Thank you @adityasharad . |
|
Have you tried the |
|
I am running into a similar issue when building with fastlane where my action gets stuck on the codesigning step only when CodeQL is initialized prior to building. The failing command is the following: In my case, the action gets stuck indefinitely with the last readable output being the following: This step usually completes in seconds but will get stuck until the action times out or is cancelled. This does not happen for the exact same pipeline without CodeQL. The initialization, build, and analysis steps looks as follows: Runner: macos-13 Let me know if there is any additional information I should provide! |
|
@jakobholmgrenhiq Thanks for the detailed report! Could you try re-running the workflow with debug logging enabled? In that case the codeql-action uploads a debug artifact. The debug artifact contains a file @AlexDenisov FYI |
First match is unique: Rest looks as follows with slight variations: Let me know if you want me to attach more complete logs. |
|
Thanks! @AlexDenisov I see that tracing is disabled after intercepting |
|
Is there any downside to adding the fix from github/codeql@6cbf8ab to all traced languages? If not we can try that out and see how it goes. |
|
Let me know if I can assist by testing some release candidate, if at all possible, in our pipelines to see if it resolves it. |
I'm afraid that the above fix doesn't actually work. Even with |
|
Any ideas on other ways we can solve this? Perhaps we can special-case codesign so that it's not even relocated? |


We`re workin on CodeQL Static Application Security Testing (SAST) implementation for a Swift language using GitHub Actions. During this process, I encountered an issue with the CodeQL initialization step when integrating with a Fastlane-based build process.
When including the CodeQL initialization step (github/codeql-action/init@v2) in the GitHub Actions workflow before Fastlane-based build commands, the build job fails with a CodeSign error. The specific error message indicates that the CodeSign command has failed.
Interesting Behavior: if I remove the CodeQL initialization step from the GitHub Actions workflow, the build application process works perfectly without any issues - application builds well.
Error message from console output:
From debug logs we got below entries:
Why codeql replace signature and is it the case for failing our scan ?
The text was updated successfully, but these errors were encountered: