Restore original getCodeQLActionRepository behaviour by simon-engledew · Pull Request #594 · github/codeql-action (original) (raw)

In version 1.0.0 the logic for determining the getCodeQLActionRepository worked this way round:

https://github.com/github/codeql-action/blob/v1.0.0/src/codeql.ts#L139

In the latest version this logic was reversed during refactoring:

https://github.com/github/codeql-action/blob/v1.0.3/src/codeql.ts#L182

This is currently causing the codeql-runner to break with the error message:

RUNNER_TEMP environment variable must be set.

This PR restores the original behaviour.

Merge / deployment checklist