Skip to content

Commit f21aa02

Browse files
committed
Update GitHub Actions workflows to use specific versions of actions and streamline permissions
1 parent 5859fa8 commit f21aa02

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ jobs:
4343
egress-policy: audit
4444

4545
- name: Checkout repository
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4747

4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@v3
49+
uses: github/codeql-action/init@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
5050
with:
5151
languages: ${{ matrix.language }}
5252

5353
- name: Autobuild
54-
uses: github/codeql-action/autobuild@v3
54+
uses: github/codeql-action/autobuild@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
5555

5656
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@v3
57+
uses: github/codeql-action/analyze@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
5858
with:
5959
category: "/language:${{matrix.language}}"

.github/workflows/ossf-scoreboard.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,21 @@
44

55
name: Scorecard supply-chain security
66
on:
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
97
branch_protection_rule:
10-
# To guarantee Maintained check is occasionally updated. See
11-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
128
schedule:
139
- cron: '32 4 * * 5'
1410
push:
1511
branches: [ "main" ]
1612

17-
# Declare default permissions as read only.
1813
permissions: read-all
1914

2015
jobs:
2116
analysis:
2217
name: Scorecard analysis
2318
runs-on: ubuntu-latest
2419
permissions:
25-
# Needed to upload the results to code-scanning dashboard.
2620
security-events: write
27-
# Needed to publish results and get a badge (see publish_results below).
2821
id-token: write
29-
# Uncomment the permissions below if installing in a private repository.
30-
# contents: read
31-
# actions: readhttps://github.com/hdamecharla/sap-automation-kimforss/tree/main
3222

3323
steps:
3424
- name: Harden Runner
@@ -46,30 +36,15 @@ jobs:
4636
with:
4737
results_file: results.sarif
4838
results_format: sarif
49-
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
50-
# - you want to enable the Branch-Protection check on a *public* repository, or
51-
# - you are installing Scorecard on a *private* repository
52-
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
53-
54-
# Public repositories:
55-
# - Publish results to OpenSSF REST API for easy access by consumers
56-
# - Allows the repository to include the Scorecard badge.
57-
# - See https://github.com/ossf/scorecard-action#publishing-results.
58-
# For private repositories:
59-
# - `publish_results` will always be set to `false`, regardless
60-
# of the value entered here.
6139
publish_results: true
6240

63-
# format to the repository Actions tab.
6441
- name: "Upload artifact"
6542
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6643
with:
6744
name: SARIF file
6845
path: results.sarif
6946
retention-days: 5
7047

71-
# Upload the results to GitHub's code scanning dashboard (optional).
72-
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7348
- name: "Upload to code-scanning"
7449
uses: github/codeql-action/upload-sarif@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
7550
with:

0 commit comments

Comments
 (0)