Skip to content

Commit 739937f

Browse files
authored
Merge pull request #1025 from github/aeisenberg/get-runs-api
Exclude pull requests from actions/runs request
2 parents a0b5962 + 0ecdac4 commit 739937f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [UNRELEASED]
44

55
- Update default CodeQL bundle version to 2.8.5. [#1014](https://github.com/github/codeql-action/pull/1014)
6+
- Fix error where the init action would fail due to a GitHub API request that was taking too long to complete [#1025](https://github.com/github/codeql-action/pull/1025)
67

78
## 2.1.7 - 05 Apr 2022
89

Diff for: lib/actions-util.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: lib/actions-util.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/actions-util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ async function getWorkflowPath(): Promise<string> {
424424

425425
const apiClient = api.getActionsApiClient();
426426
const runsResponse = await apiClient.request(
427-
"GET /repos/:owner/:repo/actions/runs/:run_id",
427+
"GET /repos/:owner/:repo/actions/runs/:run_id?exclude_pull_requests=true",
428428
{
429429
owner,
430430
repo,

0 commit comments

Comments
 (0)