Skip to content

Commit cc32ccf

Browse files
Merge pull request #2 from Contrast-Security-OSS/PRODSEC-461
Migrate @actions/github from 4.0.0 to 6.0.0
2 parents ddbeadf + dae7405 commit cc32ccf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actionbot",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"private": true,
55
"description": "Github Action Policy Checker as a Github Action",
66
"main": "lib/index.js",

src/github_files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function getFilesInCommit(commit: any, token: string): Promise<stri
1313

1414
const octokit = github.getOctokit(token);
1515
console.log('octokit : ' + octokit);
16-
const result = await octokit.repos.getCommit(args);
16+
const result = await octokit.rest.repos.getCommit(args);
1717
console.log('result : ' + result);
1818

1919
if (result && result.data && result.data.files) {

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async function run(context: typeof github.context): Promise<void> {
6969
if (prNumber) {
7070
console.log('prNumber : ' + prNumber);
7171
// Fetch the pull request details to get the commits_url
72-
const prDetails = await client.pulls.get({
72+
const prDetails = await client.rest.pulls.get({
7373
owner: github.context.repo.owner,
7474
repo: github.context.repo.repo,
7575
pull_number: prNumber,
@@ -97,7 +97,7 @@ async function run(context: typeof github.context): Promise<void> {
9797
if (prNumber2) {
9898
console.log('prNumber2 : ' + prNumber2);
9999
// Fetch the pull request details to get the commits_url
100-
const prDetails2 = await client.pulls.get({
100+
const prDetails2 = await client.rest.pulls.get({
101101
owner: github.context.repo.owner,
102102
repo: github.context.repo.repo,
103103
pull_number: prNumber2,

0 commit comments

Comments
 (0)