Skip to content

Commit 3ec5d39

Browse files
dependabot[bot]heiskrCopilot
authored
Bump @actions/github from 8.0.1 to 9.1.0 (#60884)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dc986ec commit 3ec5d39

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
},
275275
"devDependencies": {
276276
"@actions/core": "^3.0.0",
277-
"@actions/github": "^8.0.1",
277+
"@actions/github": "^9.1.0",
278278
"@axe-core/playwright": "^4.11.1",
279279
"@eslint/js": "^9.39.3",
280280
"@github/markdownlint-github": "^0.6.3",

src/assets/scripts/deleted-assets-pr-comment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import github from '@actions/github'
1+
import { context as github_context, getOctokit } from '@actions/github'
22
import { setOutput } from '@actions/core'
33

44
const { GITHUB_TOKEN } = process.env
5-
const context = github.context
5+
const context = github_context
66

77
if (!GITHUB_TOKEN) {
88
throw new Error(`GITHUB_TOKEN environment variable not set`)
@@ -26,7 +26,7 @@ type MainArgs = {
2626
headSHA: string
2727
}
2828
async function main({ owner, repo, baseSHA, headSHA }: MainArgs) {
29-
const octokit = github.getOctokit(GITHUB_TOKEN as string)
29+
const octokit = getOctokit(GITHUB_TOKEN as string)
3030
// get the list of file changes from the PR
3131
const response = await octokit.rest.repos.compareCommitsWithBasehead({
3232
owner,

src/data-directory/scripts/deleted-features-pr-comment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*/
1010

11-
import github from '@actions/github'
11+
import { context as github_context, getOctokit } from '@actions/github'
1212
import { setOutput } from '@actions/core'
1313
import { program } from 'commander'
1414

@@ -19,7 +19,7 @@ if (!GITHUB_TOKEN) {
1919
}
2020

2121
if (GITHUB_REPOSITORY) {
22-
const context = github.context
22+
const context = github_context
2323

2424
const owner = context.repo.owner
2525
const repo = context.payload.repository!.name
@@ -43,7 +43,7 @@ async function main(owner: string, repo: string, baseSHA: string, headSHA: strin
4343
if (!GITHUB_TOKEN) {
4444
throw new Error(`GITHUB_TOKEN environment variable not set`)
4545
}
46-
const octokit = github.getOctokit(GITHUB_TOKEN)
46+
const octokit = getOctokit(GITHUB_TOKEN)
4747
// get the list of file changes from the PR
4848
const response = await octokit.rest.repos.compareCommitsWithBasehead({
4949
owner,

src/workflows/content-changes-table-comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import fs from 'node:fs'
1111
import path from 'node:path'
1212

13-
import github from '@actions/github'
13+
import * as github from '@actions/github'
1414
import * as core from '@actions/core'
1515

1616
import walk from 'walk-sync'

0 commit comments

Comments
 (0)