Skip to content

Commit 5fd8ca8

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/typescript-eslint/parser-4.29.1
2 parents 952b269 + 873a76a commit 5fd8ca8

237 files changed

Lines changed: 10013 additions & 4924 deletions

File tree

Some content is hidden

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

.eslintrc.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
],
1515
"rules": {
1616
"filenames/match-regex": ["error", "^[a-z0-9-]+(\\.test)?$"],
17+
"i18n-text/no-en": "off",
1718
"import/extensions": "error",
1819
"import/no-amd": "error",
1920
"import/no-commonjs": "error",
2021
"import/no-dynamic-require": "error",
21-
"import/no-extraneous-dependencies": ["error"],
22+
// Disable the rule that checks that devDependencies aren't imported since we use a single
23+
// linting configuration file for both source and test code.
24+
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
2225
"import/no-namespace": "off",
2326
"import/no-unresolved": "error",
2427
"import/no-webpack-loader-syntax": "error",
@@ -48,7 +51,8 @@
4851
"@typescript-eslint/prefer-regexp-exec": "off",
4952
"@typescript-eslint/require-await": "off",
5053
"@typescript-eslint/restrict-template-expressions": "off",
51-
"func-style": "off"
54+
"func-style": "off",
55+
"sort-imports": "off"
5256
}
5357
}]
5458
}

.github/workflows/codeql.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
versions: ${{ steps.compare.outputs.versions }}
1818

1919
permissions:
20-
actions: read
21-
contents: read
2220
security-events: write
2321

2422
steps:
@@ -68,8 +66,6 @@ jobs:
6866
runs-on: ${{ matrix.os }}
6967

7068
permissions:
71-
actions: read
72-
contents: read
7369
security-events: write
7470

7571
steps:

.github/workflows/pr-checks.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,12 @@ jobs:
350350
echo "Default CodeQL bundle version is $CODEQL_VERSION_DEFAULT"
351351
echo "Latest CodeQL bundle version is $CODEQL_VERSION_LATEST"
352352
echo "Nightly CodeQL bundle version is $CODEQL_VERSION_NIGHTLY"
353-
if [[ "$CODEQL_VERSION_DEFAULT" == "$CODEQL_VERSION_LATEST" ]]; then
354-
# Skip `tools: latest` since it would be the same as `tools: null`
355-
VERSIONS_JSON="[null, \"$NIGHTLY_URL\"]"
356-
else
357-
# Run integration tests with all three bundles.
358-
VERSIONS_JSON="[null, \"$NIGHTLY_URL\", \"latest\"]"
359-
fi
353+
354+
# Run integration tests with all three bundles, even if `tools: latest` would be the same as
355+
# `tools: null`. This allows us to make all three kinds of integration tests required status
356+
# checks on PRs.
357+
VERSIONS_JSON="[null, \"$NIGHTLY_URL\", \"latest\"]"
358+
360359
# Output a JSON-encoded list with the distinct versions to test against.
361360
echo "Suggested matrix config for integration tests: $VERSIONS_JSON"
362361
echo "::set-output name=versions::${VERSIONS_JSON}"

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
## [UNRELEASED]
44

5-
No user facing changes.
5+
- Update README to include a sample permissions block. [#689](https://github.com/github/codeql-action/pull/689)
6+
7+
## 1.0.11 - 09 Aug 2021
8+
9+
- Update default CodeQL bundle version to 2.5.9. [#687](https://github.com/github/codeql-action/pull/687)
610

711
## 1.0.10 - 03 Aug 2021
812

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
4343
runs-on: ubuntu-latest
4444

45+
permissions:
46+
# required for all workflows
47+
security-events: write
48+
49+
# only required for workflows in private repositories
50+
actions: read
51+
contents: read
52+
4553
steps:
4654
- name: Checkout repository
4755
uses: actions/checkout@v2

lib/actions-util.test.js

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

lib/actions-util.test.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/analyze.test.js

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

0 commit comments

Comments
 (0)