60 Commits

Author SHA1 Message Date
James M. Greene
1f0c5cde4b Merge pull request #117 from actions/use-node-version-file
Use a centralized `.node-version` file
2023-12-04 12:04:09 -06:00
James M. Greene
591bb0deb9 Merge branch 'main' into use-node-version-file 2023-12-04 11:57:39 -06:00
James M. Greene
1465f012e6 Merge pull request #108 from takost/update-to-node-20
Update action to node20
2023-12-04 11:57:21 -06:00
James M. Greene
f2fc553133 Merge branch 'main' into update-to-node-20 2023-12-04 11:40:39 -06:00
James M. Greene
373694e352 Use a centralized .node-version file 2023-12-04 11:37:56 -06:00
James M. Greene
b8130d9ab9 Merge pull request #116 from actions/node-20-workflows
Update Actions workflows to use Node 20.x
2023-12-04 11:23:49 -06:00
James M. Greene
ffbbfa5ad0 Update Actions workflows to use Node 20.x 2023-12-04 11:12:35 -06:00
James M. Greene
18b91e4096 Merge pull request #114 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.10.1
Bump eslint-plugin-github from 4.7.0 to 4.10.1
2023-12-04 11:02:23 -06:00
dependabot[bot]
35974f9c62 Bump eslint-plugin-github from 4.7.0 to 4.10.1
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.7.0 to 4.10.1.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.7.0...v4.10.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 17:00:33 +00:00
James M. Greene
17db653bf9 Merge pull request #113 from actions/dependabot/npm_and_yarn/word-wrap-1.2.5
Bump word-wrap from 1.2.3 to 1.2.5
2023-12-04 10:58:51 -06:00
dependabot[bot]
53f1f2445f Bump word-wrap from 1.2.3 to 1.2.5
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 16:51:06 +00:00
James M. Greene
5a19acb369 Merge pull request #112 from actions/dependabot/npm_and_yarn/jest-29.7.0
Bump jest from 29.5.0 to 29.7.0
2023-12-04 10:49:34 -06:00
dependabot[bot]
8914a00a27 Bump jest from 29.5.0 to 29.7.0
Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.5.0 to 29.7.0.
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v29.7.0/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 16:35:01 +00:00
James M. Greene
7833dad43f Merge pull request #110 from actions/dependabot/npm_and_yarn/babel/traverse-7.23.5
Bump @babel/traverse from 7.21.3 to 7.23.5
2023-12-04 10:32:54 -06:00
dependabot[bot]
9b4596cffd Bump @babel/traverse from 7.21.3 to 7.23.5
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.3 to 7.23.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.5/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 16:11:43 +00:00
James M. Greene
30652a8ca4 Merge pull request #111 from actions/dependabot/npm_and_yarn/espree-9.6.1
Bump espree from 9.5.2 to 9.6.1
2023-12-04 10:10:25 -06:00
github-actions[bot]
dd8c98825f Update distributables after Dependabot 🤖 2023-12-04 16:09:48 +00:00
dependabot[bot]
5c432d4f0f Bump espree from 9.5.2 to 9.6.1
Bumps [espree](https://github.com/eslint/espree) from 9.5.2 to 9.6.1.
- [Release notes](https://github.com/eslint/espree/releases)
- [Changelog](https://github.com/eslint/espree/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/espree/compare/v9.5.2...v9.6.1)

---
updated-dependencies:
- dependency-name: espree
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 16:09:26 +00:00
James M. Greene
7d8c7a7dc6 Merge pull request #93 from actions/dependabot/npm_and_yarn/eslint-8.40.0
Bump eslint from 8.38.0 to 8.40.0
2023-12-04 10:07:47 -06:00
Tatyana Kostromskaya
3a014131e9 Update action to node20 2023-11-17 15:54:11 +00:00
github-actions[bot]
2cbd45e4e0 Update distributables after Dependabot 🤖 2023-05-08 10:18:29 +00:00
dependabot[bot]
d5e5fcfaf7 Bump eslint from 8.38.0 to 8.40.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.40.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.40.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 10:17:57 +00:00
James M. Greene
f156874f81 Merge pull request #89 from actions/dependabot/npm_and_yarn/eslint-8.38.0
Bump eslint from 8.36.0 to 8.38.0
2023-04-16 09:26:22 -05:00
github-actions[bot]
fe71f9ae5d Update distributables after Dependabot 🤖 2023-04-16 14:25:21 +00:00
dependabot[bot]
41eccaebbe Bump eslint from 8.36.0 to 8.38.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.36.0 to 8.38.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.36.0...v8.38.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-16 14:24:56 +00:00
James M. Greene
9cb82625f8 Merge pull request #86 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.7.0
Bump eslint-plugin-github from 4.6.1 to 4.7.0
2023-04-16 09:24:02 -05:00
dependabot[bot]
fadcf1a88f Bump eslint-plugin-github from 4.6.1 to 4.7.0
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.6.1...v4.7.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-16 14:22:45 +00:00
James M. Greene
1269962883 Merge pull request #85 from actions/dependabot/npm_and_yarn/eslint-config-prettier-8.8.0
Bump eslint-config-prettier from 8.7.0 to 8.8.0
2023-04-16 09:22:09 -05:00
dependabot[bot]
ee9b267268 Bump eslint-config-prettier from 8.7.0 to 8.8.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.7.0 to 8.8.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.7.0...v8.8.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-16 14:21:27 +00:00
James M. Greene
3f3c78f313 Merge pull request #84 from actions/dependabot/npm_and_yarn/prettier-2.8.7
Bump prettier from 2.8.6 to 2.8.7
2023-04-16 09:20:47 -05:00
dependabot[bot]
22baedcbd5 Bump prettier from 2.8.6 to 2.8.7
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.6 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.6...2.8.7)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-16 14:19:11 +00:00
James M. Greene
5549504006 Merge pull request #83 from WofWca/better-error-message
Make "Get Pages failed" error message more helpful
2023-04-16 09:18:11 -05:00
James M. Greene
dbf7935b84 Reformat error message 2023-04-16 09:16:27 -05:00
WofWca
905065c25d Fix missing space 2023-03-30 14:55:29 +08:00
WofWca
17109fe139 Make "Get Pages failed" error message more helpful 2023-03-25 14:57:08 +00:00
James M. Greene
2a4c30ee0a Merge pull request #81 from actions/dependabot/npm_and_yarn/prettier-2.8.6
Bump prettier from 2.8.4 to 2.8.6
2023-03-22 15:34:18 -05:00
dependabot[bot]
031419c070 Bump prettier from 2.8.4 to 2.8.6
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.4 to 2.8.6.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.4...2.8.6)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 20:33:30 +00:00
James M. Greene
17d80648a1 Merge pull request #68 from actions/codeql-workflow
Add a CodeQL security scanning workflow
2023-03-22 15:31:28 -05:00
James M. Greene
f207b2fdea Merge branch 'main' into codeql-workflow 2023-03-22 15:29:25 -05:00
James M. Greene
7110e9e03f Merge pull request #77 from actions/dependabot/npm_and_yarn/jest-29.5.0
Bump jest from 29.4.3 to 29.5.0
2023-03-14 20:40:47 -05:00
dependabot[bot]
2139388aaf Bump jest from 29.4.3 to 29.5.0
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.4.3 to 29.5.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.5.0/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 01:40:07 +00:00
James M. Greene
1249305e58 Merge pull request #76 from actions/dependabot/npm_and_yarn/eslint-8.36.0
Bump eslint from 8.35.0 to 8.36.0
2023-03-14 20:39:19 -05:00
dependabot[bot]
29466e6602 Bump eslint from 8.35.0 to 8.36.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.35.0 to 8.36.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.35.0...v8.36.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 01:38:36 +00:00
James M. Greene
596b326b9b Merge pull request #78 from actions/dependabot/npm_and_yarn/espree-9.5.0
Bump espree from 9.4.1 to 9.5.0
2023-03-14 20:37:26 -05:00
github-actions[bot]
0f0e83884b Update distributables after Dependabot 🤖 2023-03-13 11:07:55 +00:00
dependabot[bot]
fb49e2740e Bump espree from 9.4.1 to 9.5.0
Bumps [espree](https://github.com/eslint/espree) from 9.4.1 to 9.5.0.
- [Release notes](https://github.com/eslint/espree/releases)
- [Changelog](https://github.com/eslint/espree/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/espree/compare/v9.4.1...v9.5.0)

---
updated-dependencies:
- dependency-name: espree
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 11:07:25 +00:00
James M. Greene
8255d25c18 Merge pull request #75 from actions/dependabot/npm_and_yarn/eslint-config-prettier-8.7.0
Bump eslint-config-prettier from 8.6.0 to 8.7.0
2023-03-06 22:25:25 -06:00
dependabot[bot]
425a42e364 Bump eslint-config-prettier from 8.6.0 to 8.7.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.6.0 to 8.7.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.6.0...v8.7.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 11:10:22 +00:00
James M. Greene
e9cfa1e1db Merge pull request #73 from actions/dependabot/npm_and_yarn/eslint-8.35.0
Bump eslint from 8.34.0 to 8.35.0
2023-03-02 16:50:01 -06:00
dependabot[bot]
d11b920341 Bump eslint from 8.34.0 to 8.35.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.34.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.34.0...v8.35.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 11:09:20 +00:00
James M. Greene
84ab70e745 Merge pull request #72 from actions/dependabot/npm_and_yarn/jest-29.4.3
Bump jest from 29.4.1 to 29.4.3
2023-02-23 00:58:46 -06:00
dependabot[bot]
b287dc6263 Bump jest from 29.4.1 to 29.4.3
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.4.1 to 29.4.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.4.3/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 06:57:57 +00:00
James M. Greene
f92583d4ab Merge pull request #71 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.6.1
Bump eslint-plugin-github from 4.6.0 to 4.6.1
2023-02-23 00:57:11 -06:00
dependabot[bot]
231f4e0d00 Bump eslint-plugin-github from 4.6.0 to 4.6.1
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 11:11:33 +00:00
James M. Greene
dfe5b0f888 Merge pull request #51 from actions/document-token-options
Amend token coverage for enablement in Action metadata file
2023-02-16 12:54:32 -06:00
James M. Greene
0b5c9335ec Merge branch 'main' into document-token-options 2023-02-16 12:52:38 -06:00
James M. Greene
457b08648b Add some backticks 2023-02-16 12:52:17 -06:00
James M. Greene
406a88e3a9 Update wording
Based on https://docs.github.com/en/rest/pages?apiVersion=2022-11-28#create-a-github-pages-site

Co-authored-by: Yoann Chaudet <yoannchaudet@github.com>
2023-02-16 12:51:13 -06:00
James M. Greene
ea6c51c96e Add a CodeQL security scanning workflow 2023-02-15 19:04:56 -06:00
James M. Greene
0968db9eff Amend token coverage for enablement in Action metadata file 2023-01-30 18:45:25 -06:00
13 changed files with 4027 additions and 2162 deletions

View File

@@ -34,7 +34,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies

View File

@@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies

70
.github/workflows/codeql-analysis.yml vendored Normal file
View 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

View File

@@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: '.node-version'
cache: npm
- name: Install dependencies

View File

@@ -26,7 +26,7 @@ jobs:
- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies

View File

@@ -24,7 +24,7 @@ jobs:
- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies

1
.node-version Normal file
View File

@@ -0,0 +1 @@
20.10.0

View File

@@ -2,7 +2,7 @@ name: 'Configure GitHub Pages'
description: 'A GitHub Action to enable Pages, extract various metadata about a site, and configure some supported static site generators.'
author: 'GitHub'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
inputs:
static_site_generator:
@@ -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:

918
dist/index.js vendored

File diff suppressed because it is too large Load Diff

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

5167
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -26,14 +26,14 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"espree": "^9.4.1"
"espree": "^9.6.1"
},
"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.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-github": "^4.10.1",
"jest": "^29.7.0",
"prettier": "^2.8.7"
}
}

View File

@@ -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)