Skip to content

Commit 7f1880d

Browse files
authored
Merge pull request #1369 from IntelPython/fix/failing_workflows
Fix/failing workflows
2 parents 04a86d6 + 0808e3e commit 7f1880d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/coverity.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches:
55
- main
6+
pull_request:
7+
branches:
8+
- main
69
workflow_dispatch:
710

811
permissions: read-all
@@ -19,6 +22,7 @@ jobs:
1922
- uses: actions/checkout@v4
2023
- uses: actions/setup-java@v4
2124
with:
25+
distribution: zulu
2226
java-version: 11
2327

2428
- name: URL encode project name

.github/workflows/openssf-scorecard.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
- cron: '28 2 * * 4'
1515
push:
1616
branches: [ "main" ]
17+
pull_request:
18+
branches: [ "main" ]
1719

1820
# Declare default permissions as read only.
1921
permissions: read-all
@@ -33,7 +35,7 @@ jobs:
3335

3436
steps:
3537
- name: "Checkout code"
36-
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
38+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3739
with:
3840
persist-credentials: false
3941

@@ -55,7 +57,7 @@ jobs:
5557
# For private repositories:
5658
# - `publish_results` will always be set to `false`, regardless
5759
# of the value entered here.
58-
publish_results: true
60+
publish_results: ${{ github.event_name == 'push' }}
5961

6062
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6163
# format to the repository Actions tab.
@@ -68,6 +70,7 @@ jobs:
6870

6971
# Upload the results to GitHub's code scanning dashboard.
7072
- name: "Upload to code-scanning"
73+
if: ${{ github.event_name == 'push' }}
7174
uses: github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
7275
with:
7376
sarif_file: results.sarif

0 commit comments

Comments
 (0)