Skip to content

Commit f5e028f

Browse files
authored
Merge branch 'main' into query-binary-planting
2 parents b03b9fe + c4b7211 commit f5e028f

Some content is hidden

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

77 files changed

+614
-360
lines changed

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"no-async-foreach/no-async-foreach": "error",
3030
"no-console": "off",
3131
"no-sequences": "error",
32+
"no-shadow": "off",
33+
"@typescript-eslint/no-shadow": ["error"],
3234
"one-var": ["error", "never"]
3335
},
3436
"overrides": [{
@@ -48,8 +50,7 @@
4850
"@typescript-eslint/require-await": "off",
4951
"@typescript-eslint/restrict-template-expressions": "off",
5052
"func-style": "off",
51-
"github/no-then": "off",
52-
"no-shadow": "off"
53+
"github/no-then": "off"
5354
}
5455
}]
5556
}

.github/update-release-branch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def get_pr_for_commit(repo, commit):
123123
if prs.totalCount > 0:
124124
# In the case that there are multiple PRs, return the earliest one
125125
prs = list(prs)
126-
sorted(prs, key=lambda pr: int(pr.number))
127-
return prs[0]
126+
sorted_prs = sorted(prs, key=lambda pr: int(pr.number))
127+
return sorted_prs[0]
128128
else:
129129
return None
130130

.github/workflows/integration-testing.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,37 @@ jobs:
9898
env:
9999
TEST_MODE: true
100100

101+
go-custom-tracing:
102+
strategy:
103+
fail-fast: false
104+
matrix:
105+
os: [ubuntu-latest, windows-latest, macos-latest]
106+
runs-on: ${{ matrix.os }}
107+
env:
108+
CODEQL_EXTRACTOR_GO_BUILD_TRACING: "on"
109+
110+
steps:
111+
- uses: actions/setup-go@v2
112+
if: ${{ matrix.os == 'macos-latest' }}
113+
with:
114+
go-version: '^1.13.1'
115+
- uses: actions/checkout@v2
116+
- name: Move codeql-action
117+
shell: bash
118+
run: |
119+
mkdir ../action
120+
mv * .github ../action/
121+
mv ../action/tests/multi-language-repo/{*,.github} .
122+
- uses: ./../action/init
123+
with:
124+
languages: go
125+
- name: Build code
126+
shell: bash
127+
run: go build main.go
128+
- uses: ./../action/analyze
129+
env:
130+
TEST_MODE: true
131+
101132
multi-language-repo_rubocop:
102133
runs-on: ubuntu-latest
103134

@@ -435,6 +466,8 @@ jobs:
435466
runner-upload-sarif:
436467
runs-on: ubuntu-latest
437468

469+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id }}
470+
438471
steps:
439472
- uses: actions/checkout@v2
440473

analyze/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
description: The number of threads to be used by CodeQL.
2525
required: false
2626
checkout_path:
27-
description: "The path at which the analyzed repository was checked out. Used to relativeize any absolute paths in the uploaded SARIF file."
27+
description: "The path at which the analyzed repository was checked out. Used to relativize any absolute paths in the uploaded SARIF file."
2828
required: false
2929
default: ${{ github.workspace }}
3030
token:

lib/actions-util.js

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

0 commit comments

Comments
 (0)