Skip to content

Commit

Permalink
chore: fix github-script invocation (#433)
Browse files Browse the repository at this point in the history
According to the relesae notes, github.* API methods have been removed and
should instead by accessed by github.rest.*. Use that method to access pull
request information.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed Dec 22, 2023
1 parent 5ecf649 commit b05b28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
}
core.info(`Getting PR #${request.pull_number} from ${request.owner}/${request.repo}`)
try {
const result = await github.pulls.get(request)
const result = await github.rest.pulls.get(request)
return result.data
} catch (err) {
core.setFailed(`Request failed with error ${err}`)
Expand Down

0 comments on commit b05b28b

Please sign in to comment.