Skip to content

Commit 665891b

Browse files
authored
Merge pull request #3126 from github/mbg/add/properties-api
Add support for the repository properties API
2 parents 7f44048 + 5a4aa83 commit 665891b

24 files changed

+795
-39
lines changed

.github/actions/check-codescanning-config/index.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ import * as assert from 'assert'
66

77
const actualConfig = loadActualConfig()
88

9+
function sortConfigArrays(config) {
10+
for (const key of Object.keys(config)) {
11+
const value = config[key];
12+
if (key === 'queries' && Array.isArray(value)) {
13+
config[key] = value.sort();
14+
}
15+
}
16+
return config;
17+
}
18+
919
const rawExpectedConfig = process.argv[3].trim()
1020
if (!rawExpectedConfig) {
1121
core.setFailed('No expected configuration provided')
@@ -18,8 +28,8 @@ if (!rawExpectedConfig) {
1828
const expectedConfig = rawExpectedConfig ? JSON.parse(rawExpectedConfig) : undefined;
1929

2030
assert.deepStrictEqual(
21-
actualConfig,
22-
expectedConfig,
31+
sortConfigArrays(actualConfig),
32+
sortConfigArrays(expectedConfig),
2333
'Expected configuration does not match actual configuration'
2434
);
2535

.github/workflows/codescanning-config-cli.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ jobs:
180180
with:
181181
expected-config-file-contents: |
182182
{
183-
"queries": [
184-
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/foo2/show_ifs.ql" },
185-
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql" }
186-
],
187183
"packs": {
188184
"javascript": ["codeql-testing/[email protected]", "codeql-testing/codeql-pack2", "codeql/javascript-queries" ]
189-
}
185+
},
186+
"queries": [
187+
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql" },
188+
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/foo2/show_ifs.ql" }
189+
]
190190
}
191191
languages: javascript
192192
queries: + ./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql

lib/analyze-action-post.js

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

lib/analyze-action.js

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

lib/autobuild-action.js

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

lib/init-action-post.js

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

lib/init-action.js

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

lib/resolve-environment-action.js

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

lib/start-proxy-action-post.js

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

lib/upload-lib.js

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

0 commit comments

Comments
 (0)