Commit d013208 1 parent 32f2e40 commit d013208 Copy full SHA for d013208
File tree 6 files changed +47
-6
lines changed
6 files changed +47
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
run-name : " [${{ github.ref_name }}] Create build tag"
10
10
11
- permissions :
12
- contents : write
11
+ permissions : read-all
13
12
14
13
jobs :
15
14
CreateTag :
16
15
if : github.event.workflow_run.conclusion == 'success'
17
16
runs-on : windows-latest
17
+ permissions :
18
+ contents : write
18
19
steps :
19
20
- name : Checkout
20
21
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
branches : [ "main", "releases/*" ]
8
8
9
- permissions :
10
- id-token : write # This is required for federation to Defender for DevOps
11
- security-events : write # This is required to upload SARIF files
9
+ permissions : read-all
12
10
13
11
jobs :
14
12
MSDO :
15
13
name : Run Microsoft Security DevOps Analysis
16
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ id-token : write # This is required for federation to Defender for DevOps
17
+ security-events : write # This is required to upload SARIF files
17
18
steps :
18
19
- name : Checkout repository
19
20
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ defaults:
9
9
run :
10
10
shell : powershell
11
11
12
+ permissions : read-all
13
+
12
14
jobs :
13
15
GetBranches :
14
16
name : Get Branches
28
30
$branchMatrix = "[$($branches -join ',')]"
29
31
Write-Host "Updating branches: $branchMatrix"
30
32
Add-Content -Path $env:GITHUB_OUTPUT -Value "UpdateBranches=$branchMatrix"
33
+
31
34
UpdateBCArtifactVersion :
32
35
name : " [${{ matrix.branch }}] Update BC Artifact Version"
33
36
permissions :
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ defaults:
9
9
run :
10
10
shell : powershell
11
11
12
+ permissions : read-all
13
+
12
14
jobs :
13
15
GetBranches :
14
16
name : Get Branches
Original file line number Diff line number Diff line change 12
12
13
13
permissions :
14
14
contents : read
15
- security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
16
15
17
16
jobs :
18
17
build :
19
18
name : PSScriptAnalyzer
20
19
runs-on : ubuntu-latest
20
+ permissions :
21
+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
21
22
steps :
22
23
- uses : actions/checkout@v4
23
24
Original file line number Diff line number Diff line change
1
+ name : Scorecard analysis
2
+ on :
3
+ workflow_dispatch :
4
+ schedule :
5
+ # Weekly on Monday at 08:00 UTC
6
+ - cron : " 0 8 * * 1"
7
+
8
+ permissions : read-all
9
+
10
+ jobs :
11
+ analysis :
12
+ name : Scorecard analysis
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ security-events : write # Needed for Code scanning upload
16
+ id-token : write # Needed for GitHub OIDC token if publish_results is true
17
+
18
+ steps :
19
+ - name : " Checkout code"
20
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
21
+ with :
22
+ persist-credentials : false
23
+
24
+ - name : " Run analysis"
25
+ uses : ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
26
+ with :
27
+ results_file : results.sarif
28
+ results_format : sarif
29
+
30
+ - name : " Upload to code-scanning"
31
+ uses : github/codeql-action/upload-sarif@83a02f7883b12e0e4e1a146174f5e2292a01e601 # v2.16.4
32
+ with :
33
+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments