Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f156874f81 | |||
| fe71f9ae5d | |||
| 41eccaebbe | |||
| 9cb82625f8 | |||
| fadcf1a88f | |||
| 1269962883 | |||
| ee9b267268 | |||
| 3f3c78f313 | |||
| 22baedcbd5 | |||
| 5549504006 | |||
| dbf7935b84 | |||
| 905065c25d | |||
| 17109fe139 | |||
| 2a4c30ee0a | |||
| 031419c070 | |||
| 17d80648a1 | |||
| f207b2fdea | |||
| 7110e9e03f | |||
| 2139388aaf | |||
| 1249305e58 | |||
| 29466e6602 | |||
| 596b326b9b | |||
| 0f0e83884b | |||
| fb49e2740e | |||
| 8255d25c18 | |||
| 425a42e364 | |||
| e9cfa1e1db | |||
| d11b920341 | |||
| 84ab70e745 | |||
| b287dc6263 | |||
| f92583d4ab | |||
| 231f4e0d00 | |||
| dfe5b0f888 | |||
| 0b5c9335ec | |||
| 457b08648b | |||
| 406a88e3a9 | |||
| ea6c51c96e | |||
| 0968db9eff |
@@ -0,0 +1,70 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: 'CodeQL'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: '40 0 * * 1'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['javascript']
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
+1
-1
@@ -16,7 +16,7 @@ inputs:
|
||||
default: ${{ github.token }}
|
||||
required: true
|
||||
enablement:
|
||||
description: 'Should a Pages site be enabled for the repository if not so already? This will only work with user-to-server tokens.'
|
||||
description: 'Try to enable Pages for the repository if it is not already enabled. This option requires a token other than `GITHUB_TOKEN` to be provided. In the context of a Personal Access Token, the `repo` scope or Pages write permission is required. In the context of a GitHub App, the `administration:write` and `pages:write` permissions are required.'
|
||||
default: 'false'
|
||||
required: false
|
||||
outputs:
|
||||
|
||||
Vendored
+49
-43
@@ -16013,7 +16013,10 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
||||
pageObject = await getPagesSite({ githubToken })
|
||||
} catch (error) {
|
||||
if (!enablement) {
|
||||
core.error('Get Pages site failed', error)
|
||||
core.error(
|
||||
'Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.',
|
||||
error
|
||||
)
|
||||
throw error
|
||||
}
|
||||
core.warning('Get Pages site failed', error)
|
||||
@@ -16806,14 +16809,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
* @type {VisitorKeys}
|
||||
*/
|
||||
const KEYS = {
|
||||
AssignmentExpression: [
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
AssignmentPattern: [
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
ArrayExpression: [
|
||||
"elements"
|
||||
],
|
||||
@@ -16824,16 +16819,24 @@ const KEYS = {
|
||||
"params",
|
||||
"body"
|
||||
],
|
||||
AssignmentExpression: [
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
AssignmentPattern: [
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
AwaitExpression: [
|
||||
"argument"
|
||||
],
|
||||
BlockStatement: [
|
||||
"body"
|
||||
],
|
||||
BinaryExpression: [
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
BlockStatement: [
|
||||
"body"
|
||||
],
|
||||
BreakStatement: [
|
||||
"label"
|
||||
],
|
||||
@@ -16875,6 +16878,12 @@ const KEYS = {
|
||||
"test"
|
||||
],
|
||||
EmptyStatement: [],
|
||||
ExperimentalRestProperty: [
|
||||
"argument"
|
||||
],
|
||||
ExperimentalSpreadProperty: [
|
||||
"argument"
|
||||
],
|
||||
ExportAllDeclaration: [
|
||||
"exported",
|
||||
"source"
|
||||
@@ -16894,18 +16903,6 @@ const KEYS = {
|
||||
ExpressionStatement: [
|
||||
"expression"
|
||||
],
|
||||
ExperimentalRestProperty: [
|
||||
"argument"
|
||||
],
|
||||
ExperimentalSpreadProperty: [
|
||||
"argument"
|
||||
],
|
||||
ForStatement: [
|
||||
"init",
|
||||
"test",
|
||||
"update",
|
||||
"body"
|
||||
],
|
||||
ForInStatement: [
|
||||
"left",
|
||||
"right",
|
||||
@@ -16916,6 +16913,12 @@ const KEYS = {
|
||||
"right",
|
||||
"body"
|
||||
],
|
||||
ForStatement: [
|
||||
"init",
|
||||
"test",
|
||||
"update",
|
||||
"body"
|
||||
],
|
||||
FunctionDeclaration: [
|
||||
"id",
|
||||
"params",
|
||||
@@ -16956,6 +16959,7 @@ const KEYS = {
|
||||
JSXClosingElement: [
|
||||
"name"
|
||||
],
|
||||
JSXClosingFragment: [],
|
||||
JSXElement: [
|
||||
"openingElement",
|
||||
"children",
|
||||
@@ -16965,6 +16969,11 @@ const KEYS = {
|
||||
JSXExpressionContainer: [
|
||||
"expression"
|
||||
],
|
||||
JSXFragment: [
|
||||
"openingFragment",
|
||||
"children",
|
||||
"closingFragment"
|
||||
],
|
||||
JSXIdentifier: [],
|
||||
JSXMemberExpression: [
|
||||
"object",
|
||||
@@ -16978,22 +16987,19 @@ const KEYS = {
|
||||
"name",
|
||||
"attributes"
|
||||
],
|
||||
JSXOpeningFragment: [],
|
||||
JSXSpreadAttribute: [
|
||||
"argument"
|
||||
],
|
||||
JSXText: [],
|
||||
JSXFragment: [
|
||||
"openingFragment",
|
||||
"children",
|
||||
"closingFragment"
|
||||
JSXSpreadChild: [
|
||||
"expression"
|
||||
],
|
||||
JSXClosingFragment: [],
|
||||
JSXOpeningFragment: [],
|
||||
Literal: [],
|
||||
JSXText: [],
|
||||
LabeledStatement: [
|
||||
"label",
|
||||
"body"
|
||||
],
|
||||
Literal: [],
|
||||
LogicalExpression: [
|
||||
"left",
|
||||
"right"
|
||||
@@ -17048,14 +17054,14 @@ const KEYS = {
|
||||
"body"
|
||||
],
|
||||
Super: [],
|
||||
SwitchStatement: [
|
||||
"discriminant",
|
||||
"cases"
|
||||
],
|
||||
SwitchCase: [
|
||||
"test",
|
||||
"consequent"
|
||||
],
|
||||
SwitchStatement: [
|
||||
"discriminant",
|
||||
"cases"
|
||||
],
|
||||
TaggedTemplateExpression: [
|
||||
"tag",
|
||||
"quasi"
|
||||
@@ -17175,7 +17181,6 @@ function unionWith(additionalKeys) {
|
||||
exports.KEYS = KEYS;
|
||||
exports.getKeys = getKeys;
|
||||
exports.unionWith = unionWith;
|
||||
//# sourceMappingURL=eslint-visitor-keys.cjs.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
@@ -17946,7 +17951,7 @@ var espree = () => Parser => {
|
||||
};
|
||||
};
|
||||
|
||||
const version$1 = "9.4.1";
|
||||
const version$1 = "9.5.1";
|
||||
|
||||
/**
|
||||
* @fileoverview Main Espree file that converts Acorn into Esprima output.
|
||||
@@ -18081,6 +18086,7 @@ function parse(code, options) {
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const version = version$1;
|
||||
const name = "espree";
|
||||
|
||||
/* istanbul ignore next */
|
||||
const VisitorKeys = (function() {
|
||||
@@ -18090,16 +18096,16 @@ const VisitorKeys = (function() {
|
||||
// Derive node types from VisitorKeys
|
||||
/* istanbul ignore next */
|
||||
const Syntax = (function() {
|
||||
let name,
|
||||
let key,
|
||||
types = {};
|
||||
|
||||
if (typeof Object.create === "function") {
|
||||
types = Object.create(null);
|
||||
}
|
||||
|
||||
for (name in VisitorKeys) {
|
||||
if (Object.hasOwnProperty.call(VisitorKeys, name)) {
|
||||
types[name] = name;
|
||||
for (key in VisitorKeys) {
|
||||
if (Object.hasOwnProperty.call(VisitorKeys, key)) {
|
||||
types[key] = key;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18117,11 +18123,11 @@ const supportedEcmaVersions = getSupportedEcmaVersions();
|
||||
exports.Syntax = Syntax;
|
||||
exports.VisitorKeys = VisitorKeys;
|
||||
exports.latestEcmaVersion = latestEcmaVersion;
|
||||
exports.name = name;
|
||||
exports.parse = parse;
|
||||
exports.supportedEcmaVersions = supportedEcmaVersions;
|
||||
exports.tokenize = tokenize;
|
||||
exports.version = version;
|
||||
//# sourceMappingURL=espree.cjs.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+1684
-1022
File diff suppressed because it is too large
Load Diff
+6
-6
@@ -26,14 +26,14 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/github": "^5.1.1",
|
||||
"espree": "^9.4.1"
|
||||
"espree": "^9.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "^0.36.1",
|
||||
"eslint": "^8.34.0",
|
||||
"eslint-config-prettier": "^8.6.0",
|
||||
"eslint-plugin-github": "^4.6.0",
|
||||
"jest": "^29.4.1",
|
||||
"prettier": "^2.8.4"
|
||||
"eslint": "^8.38.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-github": "^4.7.0",
|
||||
"jest": "^29.5.0",
|
||||
"prettier": "^2.8.7"
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -42,7 +42,10 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
||||
pageObject = await getPagesSite({ githubToken })
|
||||
} catch (error) {
|
||||
if (!enablement) {
|
||||
core.error('Get Pages site failed', error)
|
||||
core.error(
|
||||
'Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.',
|
||||
error
|
||||
)
|
||||
throw error
|
||||
}
|
||||
core.warning('Get Pages site failed', error)
|
||||
|
||||
Reference in New Issue
Block a user