Skip to content

Commit 05a6909

Browse files
dependabot[bot]Copilotfelickz
authored
Bump the production-dependencies group with 3 updates (#229)
* Bump the production-dependencies group with 3 updates Bumps the production-dependencies group with 3 updates: [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core), [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) and [@octokit/action](https://github.com/octokit/action.js). Updates `@actions/core` from 1.11.1 to 3.0.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) Updates `@actions/github` from 6.0.1 to 9.1.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) Updates `@octokit/action` from 6.1.0 to 8.0.4 - [Release notes](https://github.com/octokit/action.js/releases) - [Commits](octokit/action.js@v6.1.0...v8.0.4) --- updated-dependencies: - dependency-name: "@actions/core" dependency-version: 3.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: production-dependencies - dependency-name: "@actions/github" dependency-version: 9.1.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: production-dependencies - dependency-name: "@octokit/action" dependency-version: 8.0.4 dependency-type: direct:production update-type: version-update:semver-major dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Fix ESM dependency compatibility Co-authored-by: felickz <1760475+felickz@users.noreply.github.com> * Complete ESM test shims Co-authored-by: felickz <1760475+felickz@users.noreply.github.com> * Improve Core test shim Co-authored-by: felickz <1760475+felickz@users.noreply.github.com> * Align ESM test shims Co-authored-by: felickz <1760475+felickz@users.noreply.github.com> * Make Octokit test methods mockable Co-authored-by: felickz <1760475+felickz@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
1 parent 8eac665 commit 05a6909

10 files changed

Lines changed: 32376 additions & 49583 deletions

File tree

__tests__/mocks/actions-core.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const summary = {
2+
addBreak: jest.fn(() => summary),
3+
addHeading: jest.fn(() => summary),
4+
addTable: jest.fn(() => summary),
5+
stringify: jest.fn(() => ''),
6+
write: jest.fn(() => Promise.resolve())
7+
}
8+
9+
module.exports = {
10+
debug: jest.fn(),
11+
error: jest.fn(),
12+
getInput: jest.fn((name, options = {}) => {
13+
const rawValue =
14+
process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''
15+
const value = options.trimWhitespace === false ? rawValue : rawValue.trim()
16+
if (options.required && !value) {
17+
throw new Error(`Input required and not supplied: ${name}`)
18+
}
19+
return value
20+
}),
21+
info: jest.fn(),
22+
setFailed: jest.fn(),
23+
setOutput: jest.fn(),
24+
summary,
25+
warning: jest.fn()
26+
}

__tests__/mocks/actions-github.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
context: {
3+
apiUrl: 'https://api.github.com',
4+
repo: {
5+
owner: '',
6+
repo: ''
7+
}
8+
}
9+
}

__tests__/mocks/octokit-action.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Octokit {
2+
constructor() {
3+
this.rest = {
4+
secretScanning: {
5+
listAlertsForEnterprise: jest.fn(),
6+
listAlertsForOrg: jest.fn(),
7+
listAlertsForRepo: jest.fn()
8+
}
9+
}
10+
this.paginate = jest.fn(() => Promise.resolve([]))
11+
this.request = jest.fn(() => Promise.resolve({}))
12+
}
13+
}
14+
15+
module.exports = {Octokit}

0 commit comments

Comments
 (0)