Skip to content

Commit 6db3e56

Browse files
committed
Revert Workflow Merger
Scorecard Analysis can only run on Main and not tags.
1 parent 5bfba71 commit 6db3e56

File tree

2 files changed

+54
-43
lines changed

2 files changed

+54
-43
lines changed

.github/workflows/appinspect_api.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,6 @@ on:
66
- 'v*.*.*'
77

88
jobs:
9-
analysis:
10-
name: Scorecards analysis
11-
runs-on: ubuntu-latest
12-
permissions:
13-
# Needed to upload the results to code-scanning dashboard.
14-
security-events: write
15-
actions: read
16-
contents: read
17-
18-
steps:
19-
- name: "Checkout code"
20-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
21-
with:
22-
persist-credentials: false
23-
24-
- name: "Run analysis"
25-
uses: ossf/scorecard-action@c8416b0b2bf627c349ca92fc8e3de51a64b005cf # v1.0.2
26-
with:
27-
results_file: results.sarif
28-
results_format: sarif
29-
# Read-only PAT token. To create it,
30-
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
31-
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
32-
# Publish the results to enable scorecard badges. For more details, see
33-
# https://github.com/ossf/scorecard-action#publishing-results.
34-
# For private repositories, `publish_results` will automatically be set to `false`,
35-
# regardless of the value entered here.
36-
publish_results: true
37-
38-
# Upload the results as artifacts (optional).
39-
- name: "Upload artifact"
40-
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
41-
with:
42-
name: SARIF file
43-
path: results.sarif
44-
retention-days: 5
45-
46-
# Upload the results to GitHub's code scanning dashboard.
47-
- name: "Upload to code-scanning"
48-
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
49-
with:
50-
sarif_file: results.sarif
51-
529
appinspect:
5310
runs-on: ubuntu-latest
5411
steps:
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Scorecards supply-chain security
2+
on:
3+
# Only the default branch is supported.
4+
branch_protection_rule:
5+
schedule:
6+
- cron: '19 20 * * 2'
7+
8+
9+
# Declare default permissions as read only.
10+
permissions: read-all
11+
12+
jobs:
13+
analysis:
14+
name: Scorecards analysis
15+
runs-on: ubuntu-latest
16+
permissions:
17+
# Needed to upload the results to code-scanning dashboard.
18+
security-events: write
19+
actions: read
20+
contents: read
21+
22+
steps:
23+
- name: "Checkout code"
24+
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
25+
with:
26+
persist-credentials: false
27+
28+
- name: "Run analysis"
29+
uses: ossf/scorecard-action@c8416b0b2bf627c349ca92fc8e3de51a64b005cf # v1.0.2
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
# Read-only PAT token. To create it,
34+
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
35+
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
36+
# Publish the results to enable scorecard badges. For more details, see
37+
# https://github.com/ossf/scorecard-action#publishing-results.
38+
# For private repositories, `publish_results` will automatically be set to `false`,
39+
# regardless of the value entered here.
40+
publish_results: true
41+
42+
# Upload the results as artifacts (optional).
43+
- name: "Upload artifact"
44+
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
45+
with:
46+
name: SARIF file
47+
path: results.sarif
48+
retention-days: 5
49+
50+
# Upload the results to GitHub's code scanning dashboard.
51+
- name: "Upload to code-scanning"
52+
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
53+
with:
54+
sarif_file: results.sarif

0 commit comments

Comments
 (0)