Skip to content

Commit

Permalink
fix: change checks.listForRef issue
Browse files Browse the repository at this point in the history
  • Loading branch information
meyrevived committed Dec 25, 2024
1 parent 5c3d011 commit 899be99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches: [ main ]
permissions:
checks: read
contents: write
actions: write
jobs:
Expand Down Expand Up @@ -66,8 +67,7 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const runId = context.run_id;
const checkRuns = await github.checks.listForRef({
const checkRuns = github.rest.checks.listForRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: context.sha,
Expand Down

0 comments on commit 899be99

Please sign in to comment.