Skip to content

Commit 851c5a9

Browse files
Revert "chore: Update Scorecard workflow configuration (#1339)" (#1340)
This reverts commit 150eb15. Co-authored-by: talele08 <talele.aniket@gmail.com>
1 parent 150eb15 commit 851c5a9

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This workflow uses actions that are not certified by GitHub. They are provided
22
# by a third-party and are governed by separate terms of service, privacy
33
# policy, and support documentation.
4+
45
name: Scorecard supply-chain security
56
on:
67
# For Branch-Protection check. Only the default branch is supported. See
@@ -12,9 +13,12 @@ on:
1213
- cron: '45 1 * * 4'
1314
push:
1415
branches: [ "master" ]
16+
1517
workflow_dispatch:
18+
1619
# Declare default permissions as read only.
1720
permissions: read-all
21+
1822
jobs:
1923
analysis:
2024
name: Scorecard analysis
@@ -26,29 +30,36 @@ jobs:
2630
security-events: write
2731
# Needed to publish results and get a badge (see publish_results below).
2832
id-token: write
33+
2934
steps:
3035
- name: "Checkout code"
3136
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3237
with:
3338
persist-credentials: false
39+
3440
- name: "Run analysis"
3541
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
3642
with:
3743
results_file: results.sarif
3844
results_format: sarif
39-
# PAT token for Branch-Protection check access.
45+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
46+
# - you want to enable the Branch-Protection check on a *public* repository, or
47+
# - you are installing Scorecard on a *private* repository
4048
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
41-
repo_token: ${{ secrets.SCORECARD_TOKEN }}
49+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
50+
4251
# Public repositories:
4352
# - Publish results to OpenSSF REST API for easy access by consumers
4453
# - Allows the repository to include the Scorecard badge.
4554
# - See https://github.com/ossf/scorecard-action#publishing-results.
4655
# For private repositories:
4756
# - `publish_results` will always be set to `false`, regardless
4857
# of the value entered here.
49-
publish_results: ${{ github.event.repository.default_branch == github.ref_name }}
58+
publish_results: true
59+
5060
# (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore
5161
# file_mode: git
62+
5263
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5364
# format to the repository Actions tab.
5465
- name: "Upload artifact"
@@ -57,6 +68,7 @@ jobs:
5768
name: SARIF file
5869
path: results.sarif
5970
retention-days: 5
71+
6072
# Upload the results to GitHub's code scanning dashboard (optional).
6173
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
6274
- name: "Upload to code-scanning"

0 commit comments

Comments
 (0)