Skip to content

Commit d518039

Browse files
Merge branch 'master' into integration_test_check
2 parents 6d1f969 + 855f965 commit d518039

File tree

10 files changed

+103
-37
lines changed

10 files changed

+103
-37
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Contact GitHub Support
4+
url: https://support.github.com/contact?subject=Code+Scanning+Beta+Support&tags=code-scanning-support
5+
about: Contact Support about code scanning

.github/workflows/codeql.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "CodeQL action"
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
@@ -11,6 +11,16 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v1
14+
with:
15+
# Must fetch at least the immediate parents so that if this is
16+
# a pull request then we can checkout the head of the pull request.
17+
fetch-depth: 2
18+
19+
# If this run was triggered by a pull request event then checkout
20+
# the head of the pull request instead of the merge commit.
21+
- run: git checkout HEAD^2
22+
if: ${{ github.event_name == 'pull_request' }}
23+
1424
- uses: ./init
1525
with:
1626
languages: javascript

.github/workflows/integration-testing.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Integration Testing"
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
multi-language-repo_test-autodetect-languages:
@@ -12,9 +12,8 @@ jobs:
1212
shell: bash
1313
run: |
1414
mkdir ../action
15-
shopt -s dotglob
16-
mv * ../action/
17-
mv ../action/tests/multi-language-repo/* .
15+
mv * .github ../action/
16+
mv ../action/tests/multi-language-repo/{*,.github} .
1817
- uses: ./../action/init
1918
- name: Build code
2019
shell: bash
@@ -48,9 +47,8 @@ jobs:
4847
shell: bash
4948
run: |
5049
mkdir ../action
51-
shopt -s dotglob
52-
mv * ../action/
53-
mv ../action/tests/multi-language-repo/* .
50+
mv * .github ../action/
51+
mv ../action/tests/multi-language-repo/{*,.github} .
5452
- uses: ./../action/init
5553
with:
5654
languages: cpp,csharp,java,javascript,python
@@ -80,9 +78,8 @@ jobs:
8078
shell: bash
8179
run: |
8280
mkdir ../action
83-
shopt -s dotglob
84-
mv * ../action/
85-
mv ../action/tests/multi-language-repo/* .
81+
mv * .github ../action/
82+
mv ../action/tests/multi-language-repo/{*,.github} .
8683
- uses: ./../action/init
8784
with:
8885
languages: go
@@ -104,9 +101,8 @@ jobs:
104101
shell: bash
105102
run: |
106103
mkdir ../action
107-
shopt -s dotglob
108-
mv * ../action/
109-
mv ../action/tests/multi-language-repo/* .
104+
mv * .github ../action/
105+
mv ../action/tests/multi-language-repo/{*,.github} .
110106
- name: Set up Ruby
111107
uses: ruby/setup-ruby@v1
112108
with:
@@ -125,4 +121,4 @@ jobs:
125121
with:
126122
sarif_file: rubocop.sarif
127123
env:
128-
TEST_MODE: true
124+
TEST_MODE: true

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ name: "Code Scanning - Action"
1818

1919
on:
2020
push:
21+
pull_request:
2122
schedule:
2223
- cron: '0 0 * * 0'
2324

@@ -33,6 +34,17 @@ jobs:
3334
steps:
3435
- name: Checkout repository
3536
uses: actions/checkout@v2
37+
with:
38+
# Must fetch at least the immediate parents so that if this is
39+
# a pull request then we can checkout the head of the pull request.
40+
# Only include this option if you are running this workflow on pull requests.
41+
fetch-depth: 2
42+
43+
# If this run was triggered by a pull request event then checkout
44+
# the head of the pull request instead of the merge commit.
45+
# Only include this step if you are running this workflow on pull requests.
46+
- run: git checkout HEAD^2
47+
if: ${{ github.event_name == 'pull_request' }}
3648

3749
# Initializes the CodeQL tools for scanning.
3850
- name: Initialize CodeQL
@@ -84,7 +96,7 @@ The CodeQL action should be run on `push` events, and on a `schedule`. `Push` ev
8496

8597
### Configuration
8698

87-
You may optionally specify additional queries for CodeQL to execute by using a config file. The queries must belong to a [QL pack](https://help.semmle.com/codeql/codeql-cli/reference/qlpack-overview.html) and can be in your repository or any public repository. You can choose a single .ql file, a folder containing multiple .ql files, a .qls [query suite](https://help.semmle.com/codeql/codeql-cli/procedures/query-suites.html) file, or any combination of the above. To use queries from other repositories use the same syntax as when [using an action](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses).
99+
You may optionally specify additional queries for CodeQL to execute by using a config file. The queries must belong to a [QL pack](https://help.semmle.com/codeql/codeql-cli/reference/qlpack-overview.html) and can be in your repository or any public repository. You can choose a single .ql file, a folder containing multiple .ql files, a .qls [query suite](https://help.semmle.com/codeql/codeql-cli/procedures/query-suites.html) file, or any combination of the above. To use queries stored in your repository or from other repositories use the same syntax as when [using an action](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses). Note that when using local queries starting with `./`, the path is relative to the root of the repository and not to the location of the config file.
88100

89101
You can disable the default queries using `disable-default-queries: true`.
90102

lib/upload-lib.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util.js

Lines changed: 30 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)