Skip to content

Github Workflow CodeQL: Check out submodules#986

Closed
hoffie wants to merge 1 commit intojamulussoftware:masterfrom
hoffie:codeql-checkout-submodules
Closed

Github Workflow CodeQL: Check out submodules#986
hoffie wants to merge 1 commit intojamulussoftware:masterfrom
hoffie:codeql-checkout-submodules

Conversation

@hoffie
Copy link
Copy Markdown
Member

@hoffie hoffie commented Feb 12, 2021

(As noticed by @nefarius2001)

  • Submodules are part of official releases, so it might make sense
    to run them through CodeQL as well.
  • This is supposed to detect breakage with submodule inclusion
    as observed in submodule checkout broken #984.

Docs: https://github.com/actions/checkout

I'm not sure if the modified CodeQL workflow will already trigger in this PR (I suspect it won't). If it does, it will probably (correctly) fail until #985 is merged. It would be great if it did because I could then rebase and we could check if the action works as intended and passes afterwards.

Note: I have never worked with Github actions before so it might be horribly wrong what I do.

- Submodules are part of official releases, so it might make sense
  to run them through CodeQL as well.
- This is supposed to detect breakage with submodule inclusion
  as observed in jamulussoftware#984.

Docs: https://github.com/actions/checkout

Signed-off-by: Christian Hoffmann <mail@hoffmann-christian.info>
@hoffie
Copy link
Copy Markdown
Member Author

hoffie commented Feb 12, 2021

I'm not sure if the modified CodeQL workflow will already trigger in this PR (I suspect it won't). If it does, it will probably (correctly) fail until #985 is merged. It would be great if it did because I could then rebase and we could check if the action works as intended and passes afterwards.

Seems like it works -- CodeQL fails in this PR because the new CodeQL workflow seems to be used:

  Error: fatal: clone of 'https://github.com/github.com/google/oboe.git' into submodule path '/home/runner/work/jamulus/jamulus/libs/oboe' failed
  Failed to clone 'libs/oboe' a second time, aborting
  Error: The process '/usr/bin/git' failed with exit code 1

I suggest waiting for #985 to be merged, will then rebase and then CodeQL should be green again.

@nefarius2001
Copy link
Copy Markdown
Contributor

#978 is close to ready, will fix qodeql

@hoffie
Copy link
Copy Markdown
Member Author

hoffie commented Feb 13, 2021

#978 is close to ready, will fix qodeql

Ah, thanks for the pointer. Your PR seems to move the CodeQL part to the autobuild which already contains a submodule-enabled checkout. So, after your PR my PR becomes irrelevant.

If your PR is merged quickly, I'll close my PR as it becomes obsolete. If there is still some back and forth I'd be in favor of merging my PR temporarily to spot any problems in this area.

@pljones
Copy link
Copy Markdown
Collaborator

pljones commented Feb 17, 2021

Can this be closed?

@hoffie
Copy link
Copy Markdown
Member Author

hoffie commented Feb 17, 2021

Yes, it will be part of #978 already.

@hoffie hoffie closed this Feb 17, 2021
@hoffie hoffie deleted the codeql-checkout-submodules branch March 19, 2022 20:26
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.

3 participants