-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a check to ensure expected CodeQL release files exist.
- Loading branch information
Chris Gavin
committed
Dec 1, 2020
1 parent
c6dbd5a
commit fb2a3bf
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Check Expected Release Files | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/check-expected-release-files.yml | ||
- src/defaults.json | ||
|
||
jobs: | ||
check-expected-release-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout CodeQL Action | ||
uses: actions/checkout@v2 | ||
- name: Check Expected Release Files | ||
run: | | ||
bundle_version="$(cat "./src/defaults.json" | jq -r ".bundleVersion")" | ||
set -x | ||
for expected_file in "codeql-bundle.tar.gz" "codeql-bundle-linux64.tar.gz" "codeql-bundle-osx64.tar.gz" "codeql-bundle-win64.tar.gz" "codeql-runner-linux" "codeql-runner-macos" "codeql-runner-win.exe"; do | ||
curl --location --fail --head --request GET "https://github.com/github/codeql-action/releases/download/$bundle_version/$expected_file" > /dev/null | ||
done |