Skip to content

Commit 1d53595

Browse files
Merge pull request #35 from reactive-firewall/reactive-firewall-patch-1
Patch Score-card actions
2 parents 90f7b47 + 0bed4f7 commit 1d53595

File tree

2 files changed

+38
-18
lines changed

2 files changed

+38
-18
lines changed

.github/workflows/Labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
security-events: none
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/labeler@v4
17+
- uses: actions/labeler@v5
1818
with:
1919
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,73 @@
1-
name: Scorecards supply-chain security
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: Scorecard supply-chain security
26
on:
3-
# Only the default branch is supported.
7+
# For Branch-Protection check. Only the default branch is supported. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
49
branch_protection_rule:
10+
# To guarantee Maintained check is occasionally updated. See
11+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
512
schedule:
613
- cron: '18 9 * * 5'
714
push:
8-
branches: [ master ]
15+
branches: [ "master" ]
916

1017
# Declare default permissions as read only.
1118
permissions: read-all
1219

1320
jobs:
1421
analysis:
15-
name: Scorecards analysis
22+
name: Scorecard analysis
1623
runs-on: ubuntu-latest
1724
permissions:
1825
# Needed to upload the results to code-scanning dashboard.
1926
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write
29+
# Uncomment the permissions below if installing in a private repository.
30+
# contents: read
31+
# actions: read
2032

2133
steps:
2234
- name: "Checkout code"
23-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2436
with:
2537
persist-credentials: false
2638

2739
- name: "Run analysis"
28-
uses: ossf/scorecard-action@175f59783fa96e44dd6fa96619ab7bdacab56b5c # v0.0.1
40+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
2941
with:
3042
results_file: results.sarif
3143
results_format: sarif
32-
# Read-only PAT token. To create it,
33-
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
44+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45+
# - you want to enable the Branch-Protection check on a *public* repository, or
46+
# - you are installing Scorecard on a *private* repository
47+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
3448
repo_token: ${{ secrets.SCORECARD_TOKEN }}
35-
# Publish the results to enable scorecard badges. For more details, see
36-
# https://github.com/ossf/scorecard-action#publishing-results.
37-
# If you are installing the action on a private repo, set it to `publish_results: false`
38-
# or comment out the following line.
39-
publish_results: true
4049

41-
# Upload the results as artifacts (optional).
50+
# Public repositories:
51+
# - Publish results to OpenSSF REST API for easy access by consumers
52+
# - Allows the repository to include the Scorecard badge.
53+
# - See https://github.com/ossf/scorecard-action#publishing-results.
54+
# For private repositories:
55+
# - `publish_results` will always be set to `false`, regardless
56+
# of the value entered here.
57+
publish_results: false
58+
59+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60+
# format to the repository Actions tab.
4261
- name: "Upload artifact"
43-
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
62+
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
4463
with:
4564
name: SARIF file
4665
path: results.sarif
4766
retention-days: 5
4867

49-
# Upload the results to GitHub's code scanning dashboard.
68+
# Upload the results to GitHub's code scanning dashboard (optional).
69+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5070
- name: "Upload to code-scanning"
51-
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
71+
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
5272
with:
5373
sarif_file: results.sarif

0 commit comments

Comments
 (0)