mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-31 10:34:54 +00:00
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 |
70
.github/workflows/codeql-analysis.yml
vendored
Normal file
70
.github/workflows/codeql-analysis.yml
vendored
Normal file
@@ -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
|
||||||
@@ -16,7 +16,7 @@ inputs:
|
|||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
required: true
|
required: true
|
||||||
enablement:
|
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'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
92
dist/index.js
vendored
92
dist/index.js
vendored
@@ -16013,7 +16013,10 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
|||||||
pageObject = await getPagesSite({ githubToken })
|
pageObject = await getPagesSite({ githubToken })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!enablement) {
|
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
|
throw error
|
||||||
}
|
}
|
||||||
core.warning('Get Pages site failed', error)
|
core.warning('Get Pages site failed', error)
|
||||||
@@ -16806,14 +16809,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
* @type {VisitorKeys}
|
* @type {VisitorKeys}
|
||||||
*/
|
*/
|
||||||
const KEYS = {
|
const KEYS = {
|
||||||
AssignmentExpression: [
|
|
||||||
"left",
|
|
||||||
"right"
|
|
||||||
],
|
|
||||||
AssignmentPattern: [
|
|
||||||
"left",
|
|
||||||
"right"
|
|
||||||
],
|
|
||||||
ArrayExpression: [
|
ArrayExpression: [
|
||||||
"elements"
|
"elements"
|
||||||
],
|
],
|
||||||
@@ -16824,16 +16819,24 @@ const KEYS = {
|
|||||||
"params",
|
"params",
|
||||||
"body"
|
"body"
|
||||||
],
|
],
|
||||||
|
AssignmentExpression: [
|
||||||
|
"left",
|
||||||
|
"right"
|
||||||
|
],
|
||||||
|
AssignmentPattern: [
|
||||||
|
"left",
|
||||||
|
"right"
|
||||||
|
],
|
||||||
AwaitExpression: [
|
AwaitExpression: [
|
||||||
"argument"
|
"argument"
|
||||||
],
|
],
|
||||||
BlockStatement: [
|
|
||||||
"body"
|
|
||||||
],
|
|
||||||
BinaryExpression: [
|
BinaryExpression: [
|
||||||
"left",
|
"left",
|
||||||
"right"
|
"right"
|
||||||
],
|
],
|
||||||
|
BlockStatement: [
|
||||||
|
"body"
|
||||||
|
],
|
||||||
BreakStatement: [
|
BreakStatement: [
|
||||||
"label"
|
"label"
|
||||||
],
|
],
|
||||||
@@ -16875,6 +16878,12 @@ const KEYS = {
|
|||||||
"test"
|
"test"
|
||||||
],
|
],
|
||||||
EmptyStatement: [],
|
EmptyStatement: [],
|
||||||
|
ExperimentalRestProperty: [
|
||||||
|
"argument"
|
||||||
|
],
|
||||||
|
ExperimentalSpreadProperty: [
|
||||||
|
"argument"
|
||||||
|
],
|
||||||
ExportAllDeclaration: [
|
ExportAllDeclaration: [
|
||||||
"exported",
|
"exported",
|
||||||
"source"
|
"source"
|
||||||
@@ -16894,18 +16903,6 @@ const KEYS = {
|
|||||||
ExpressionStatement: [
|
ExpressionStatement: [
|
||||||
"expression"
|
"expression"
|
||||||
],
|
],
|
||||||
ExperimentalRestProperty: [
|
|
||||||
"argument"
|
|
||||||
],
|
|
||||||
ExperimentalSpreadProperty: [
|
|
||||||
"argument"
|
|
||||||
],
|
|
||||||
ForStatement: [
|
|
||||||
"init",
|
|
||||||
"test",
|
|
||||||
"update",
|
|
||||||
"body"
|
|
||||||
],
|
|
||||||
ForInStatement: [
|
ForInStatement: [
|
||||||
"left",
|
"left",
|
||||||
"right",
|
"right",
|
||||||
@@ -16916,6 +16913,12 @@ const KEYS = {
|
|||||||
"right",
|
"right",
|
||||||
"body"
|
"body"
|
||||||
],
|
],
|
||||||
|
ForStatement: [
|
||||||
|
"init",
|
||||||
|
"test",
|
||||||
|
"update",
|
||||||
|
"body"
|
||||||
|
],
|
||||||
FunctionDeclaration: [
|
FunctionDeclaration: [
|
||||||
"id",
|
"id",
|
||||||
"params",
|
"params",
|
||||||
@@ -16956,6 +16959,7 @@ const KEYS = {
|
|||||||
JSXClosingElement: [
|
JSXClosingElement: [
|
||||||
"name"
|
"name"
|
||||||
],
|
],
|
||||||
|
JSXClosingFragment: [],
|
||||||
JSXElement: [
|
JSXElement: [
|
||||||
"openingElement",
|
"openingElement",
|
||||||
"children",
|
"children",
|
||||||
@@ -16965,6 +16969,11 @@ const KEYS = {
|
|||||||
JSXExpressionContainer: [
|
JSXExpressionContainer: [
|
||||||
"expression"
|
"expression"
|
||||||
],
|
],
|
||||||
|
JSXFragment: [
|
||||||
|
"openingFragment",
|
||||||
|
"children",
|
||||||
|
"closingFragment"
|
||||||
|
],
|
||||||
JSXIdentifier: [],
|
JSXIdentifier: [],
|
||||||
JSXMemberExpression: [
|
JSXMemberExpression: [
|
||||||
"object",
|
"object",
|
||||||
@@ -16978,22 +16987,19 @@ const KEYS = {
|
|||||||
"name",
|
"name",
|
||||||
"attributes"
|
"attributes"
|
||||||
],
|
],
|
||||||
|
JSXOpeningFragment: [],
|
||||||
JSXSpreadAttribute: [
|
JSXSpreadAttribute: [
|
||||||
"argument"
|
"argument"
|
||||||
],
|
],
|
||||||
JSXText: [],
|
JSXSpreadChild: [
|
||||||
JSXFragment: [
|
"expression"
|
||||||
"openingFragment",
|
|
||||||
"children",
|
|
||||||
"closingFragment"
|
|
||||||
],
|
],
|
||||||
JSXClosingFragment: [],
|
JSXText: [],
|
||||||
JSXOpeningFragment: [],
|
|
||||||
Literal: [],
|
|
||||||
LabeledStatement: [
|
LabeledStatement: [
|
||||||
"label",
|
"label",
|
||||||
"body"
|
"body"
|
||||||
],
|
],
|
||||||
|
Literal: [],
|
||||||
LogicalExpression: [
|
LogicalExpression: [
|
||||||
"left",
|
"left",
|
||||||
"right"
|
"right"
|
||||||
@@ -17048,14 +17054,14 @@ const KEYS = {
|
|||||||
"body"
|
"body"
|
||||||
],
|
],
|
||||||
Super: [],
|
Super: [],
|
||||||
SwitchStatement: [
|
|
||||||
"discriminant",
|
|
||||||
"cases"
|
|
||||||
],
|
|
||||||
SwitchCase: [
|
SwitchCase: [
|
||||||
"test",
|
"test",
|
||||||
"consequent"
|
"consequent"
|
||||||
],
|
],
|
||||||
|
SwitchStatement: [
|
||||||
|
"discriminant",
|
||||||
|
"cases"
|
||||||
|
],
|
||||||
TaggedTemplateExpression: [
|
TaggedTemplateExpression: [
|
||||||
"tag",
|
"tag",
|
||||||
"quasi"
|
"quasi"
|
||||||
@@ -17175,7 +17181,6 @@ function unionWith(additionalKeys) {
|
|||||||
exports.KEYS = KEYS;
|
exports.KEYS = KEYS;
|
||||||
exports.getKeys = getKeys;
|
exports.getKeys = getKeys;
|
||||||
exports.unionWith = unionWith;
|
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.
|
* @fileoverview Main Espree file that converts Acorn into Esprima output.
|
||||||
@@ -18081,6 +18086,7 @@ function parse(code, options) {
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
const version = version$1;
|
const version = version$1;
|
||||||
|
const name = "espree";
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
const VisitorKeys = (function() {
|
const VisitorKeys = (function() {
|
||||||
@@ -18090,16 +18096,16 @@ const VisitorKeys = (function() {
|
|||||||
// Derive node types from VisitorKeys
|
// Derive node types from VisitorKeys
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
const Syntax = (function() {
|
const Syntax = (function() {
|
||||||
let name,
|
let key,
|
||||||
types = {};
|
types = {};
|
||||||
|
|
||||||
if (typeof Object.create === "function") {
|
if (typeof Object.create === "function") {
|
||||||
types = Object.create(null);
|
types = Object.create(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (name in VisitorKeys) {
|
for (key in VisitorKeys) {
|
||||||
if (Object.hasOwnProperty.call(VisitorKeys, name)) {
|
if (Object.hasOwnProperty.call(VisitorKeys, key)) {
|
||||||
types[name] = name;
|
types[key] = key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18117,11 +18123,11 @@ const supportedEcmaVersions = getSupportedEcmaVersions();
|
|||||||
exports.Syntax = Syntax;
|
exports.Syntax = Syntax;
|
||||||
exports.VisitorKeys = VisitorKeys;
|
exports.VisitorKeys = VisitorKeys;
|
||||||
exports.latestEcmaVersion = latestEcmaVersion;
|
exports.latestEcmaVersion = latestEcmaVersion;
|
||||||
|
exports.name = name;
|
||||||
exports.parse = parse;
|
exports.parse = parse;
|
||||||
exports.supportedEcmaVersions = supportedEcmaVersions;
|
exports.supportedEcmaVersions = supportedEcmaVersions;
|
||||||
exports.tokenize = tokenize;
|
exports.tokenize = tokenize;
|
||||||
exports.version = version;
|
exports.version = version;
|
||||||
//# sourceMappingURL=espree.cjs.map
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
2706
package-lock.json
generated
2706
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -26,14 +26,14 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/github": "^5.1.1",
|
||||||
"espree": "^9.4.1"
|
"espree": "^9.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"eslint": "^8.34.0",
|
"eslint": "^8.38.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
"eslint-plugin-github": "^4.6.0",
|
"eslint-plugin-github": "^4.7.0",
|
||||||
"jest": "^29.4.1",
|
"jest": "^29.5.0",
|
||||||
"prettier": "^2.8.4"
|
"prettier": "^2.8.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,10 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
|||||||
pageObject = await getPagesSite({ githubToken })
|
pageObject = await getPagesSite({ githubToken })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!enablement) {
|
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
|
throw error
|
||||||
}
|
}
|
||||||
core.warning('Get Pages site failed', error)
|
core.warning('Get Pages site failed', error)
|
||||||
|
|||||||
Reference in New Issue
Block a user