Skip to content

Conversation

@Daverlo
Copy link
Contributor

@Daverlo Daverlo commented Apr 29, 2020

This PR improves the error message for custom queries that don't have a qlpack.yml or one that is invalid, and aborts the execution instead of continuing with analysis and upload.

Here is a workflow run with a missing qlpack: https://github.com/github/codeql-action/actions/runs/91020742
Here is a successful workflow run: https://github.com/github/codeql-action/actions/runs/91018560

Merge / deployment checklist

  • Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in otehr repos!
    • CodeQL using init/finish actions
    • 3rd party tool using upload action
  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

Copy link
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the error message. LGTM

@Daverlo Daverlo merged commit f16b356 into master Apr 30, 2020
@chrisgavin chrisgavin deleted the no-ql-pack branch September 2, 2020 13:24
marcogario added a commit that referenced this pull request Sep 9, 2020
# This is the 1st commit message:

Add logic to download codeql platform-language pkg

* Add `bundleName` argument to `getCodeQLBundleDownloadURL`
* Add `languages` argument to `setupCodeQL`.

The logic now tries to find the platform-language pkg before defaulting
to the full bundle. We keep the toolcache clean by adding the pl version
to the tool version.

# The commit message #2 will be skipped:

# Add simple fallback logic for download

# The commit message #3 will be skipped:

# wip linter

# The commit message #4 will be skipped:

# linter
marcogario added a commit that referenced this pull request Sep 9, 2020
# This is the 1st commit message:

Add logic to download codeql platform-language pkg

* Add `bundleName` argument to `getCodeQLBundleDownloadURL`
* Add `languages` argument to `setupCodeQL`.

The logic now tries to find the platform-language pkg before defaulting
to the full bundle. We keep the toolcache clean by adding the pl version
to the tool version.

# The commit message #2 will be skipped:

# add test

# The commit message #3 will be skipped:

# cleanup

# The commit message #4 will be skipped:

# linter
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