Skip to content

Commit 37f75f1

Browse files
authored
Merge pull request #570 from github/update-v1.0.2-0b1f4a01
Merge main into v1
2 parents ece2add + 028a76e commit 37f75f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1513
-401
lines changed

.github/update-release-branch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_commit_difference(repo):
122122

123123
# Is the given commit the automatic merge commit from when merging a PR
124124
def is_pr_merge_commit(commit):
125-
return commit.committer.login == 'web-flow' and len(commit.parents) > 1
125+
return commit.committer is not None and commit.committer.login == 'web-flow' and len(commit.parents) > 1
126126

127127
# Gets a copy of the commit message that should display nicely
128128
def get_truncated_commit_message(commit):

.github/workflows/post-release-mergeback.yml

-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ on:
1616
branches:
1717
- v1
1818

19-
pull_request:
20-
paths:
21-
- .github/workflows/post-release-mergeback.yml
22-
2319
jobs:
2420
merge-back:
2521
runs-on: ubuntu-latest

.github/workflows/pr-checks.yml

+43
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,49 @@ jobs:
100100
exit 1
101101
fi
102102
103+
# Packaging test that runs against a javascript database
104+
test-packaging-javascript:
105+
needs: [check-js, check-node-modules]
106+
runs-on: ubuntu-latest
107+
108+
steps:
109+
- uses: actions/checkout@v2
110+
- name: Move codeql-action
111+
shell: bash
112+
run: |
113+
mkdir ../action
114+
mv * .github ../action/
115+
mv ../action/tests/multi-language-repo/{*,.github} .
116+
mv ../action/.github/workflows .github
117+
- uses: ./../action/init
118+
with:
119+
config-file: ".github/codeql/codeql-config-packaging.yml"
120+
languages: javascript
121+
# TODO: this can be removed when cli v2.5.6 is released and available in the tool cache
122+
tools: https://github.com/dsp-testing/aeisenberg-codeql-action-packaging/releases/download/codeql-bundle-20210615/codeql-bundle-linux64.tar.gz
123+
124+
- name: Build code
125+
shell: bash
126+
run: ./build.sh
127+
- uses: ./../action/analyze
128+
with:
129+
output: "${{ runner.temp }}/results"
130+
env:
131+
TEST_MODE: true
132+
- name: Assert Results
133+
run: |
134+
cd "$RUNNER_TEMP/results"
135+
# We should have 3 hits from these rules
136+
EXPECTED_RULES="javascript/example/empty-or-one-block javascript/example/empty-or-one-block javascript/example/two-block"
137+
138+
# use tr to replace newlines with spaces and xargs to trim leading and trailing whitespace
139+
RULES="$(cat javascript.sarif | jq -r '.runs[0].results[].ruleId' | sort | tr "\n" " " | xargs)"
140+
echo "Found matching rules '$RULES'"
141+
if [ "$RULES" != "$EXPECTED_RULES" ]; then
142+
echo "Did not match expected rules '$EXPECTED_RULES'."
143+
exit 1
144+
fi
145+
103146
# Identify the CodeQL tool versions to integration test against.
104147
check-codeql-versions:
105148
needs: [check-js, check-node-modules]

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CodeQL Action and CodeQL Runner Changelog
22

3+
## 1.0.2 - 17 Jun 2021
4+
5+
- Fix out of memory in hash computation. [#550](https://github.com/github/codeql-action/pull/550)
6+
- Clean up logging during analyze results. [#557](https://github.com/github/codeql-action/pull/557)
7+
- Add `--finalize-dataset` to `database finalize` call, freeing up some disk space after database creation. [#558](https://github.com/github/codeql-action/pull/558)
8+
39
## 1.0.1 - 07 Jun 2021
410

511
- Pass the `--sarif-group-rules-by-pack` argument to CodeQL CLI invocations that generate SARIF. This means the SARIF rule object for each query will now be found underneath its corresponding query pack in `runs[].tool.extensions`. [#546](https://github.com/github/codeql-action/pull/546)

lib/analysis-paths.test.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analysis-paths.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)