Fix assumption that all CodeQL bundle URLs contain the tag name of the bundle by henrymercer · Pull Request #1517 · github/codeql-action (original) (raw)
While implementing controlled switchover, we inadvertently introduced an assumption that all CodeQL bundle URLs contain the tag name of the bundle, for example codeql-bundle-2020230120. This is in fact not the case on GHES, where the bundle URL may be https://example.githubenterprise.com/api/v3/repos/github/codeql-action/releases/assets/1 when the CodeQL sync tool has been used to sync the CodeQL bundle to the GHES instance.
This PR adds a regression test and fixes that assumption.