Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'main' into simon-engledew/string-branches
Simon Engledew committed Dec 2, 2020

Unverified

No user is associated with the committer email.
2 parents 78b9d23 + e6174fc commit ec8015b
Showing 4 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check-expected-release-files.yml
@@ -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
2 changes: 1 addition & 1 deletion lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.js.map
2 changes: 1 addition & 1 deletion src/actions-util.ts
@@ -196,7 +196,7 @@ function toCodedErrors(errors: {
export const WorkflowErrors = toCodedErrors({
MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that Code Scanning can compare pull requests against the state of the base branch.`,
MissingHooks: `Please specify on.push and on.pull_request hooks so that Code Scanning can compare pull requests against the state of the base branch.`,
MissingPullRequestHook: `Please specify an on.pull_request hook so that Code Scanning is run against pull requests.`,
MissingPullRequestHook: `Please specify an on.pull_request hook so that Code Scanning is explicitly run against pull requests. This will be required to see results on pull requests from January 31 2021.`,
MissingPushHook: `Please specify an on.push hook so that Code Scanning can compare pull requests against the state of the base branch.`,
PathsSpecified: `Using on.push.paths can prevent Code Scanning annotating new alerts in your pull requests.`,
PathsIgnoreSpecified: `Using on.push.paths-ignore can prevent Code Scanning annotating new alerts in your pull requests.`,

0 comments on commit ec8015b

Please sign in to comment.