FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SixPivot.Azure/.github/workflows/code-analysis.yml at main · mperdeck/SixPivot.Azure · GitHub
mperdeck
SixPivot.Azure
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SixPivot.Azure
/
.github
/
workflows
/
code-analysis.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
40 lines (36 loc) · 1.14 KB
Breadcrumbs
SixPivot.Azure
/
.github
/
workflows
/
code-analysis.yml
Copy path
File metadata and controls
40 lines (36 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name
:
Code analysis
on
:
push
:
branches
:
[ main ]
pull_request
:
branches
:
[ main ]
workflow_dispatch
:
jobs
:
pssa
:
name
:
Script Analyzer
runs-on
:
windows-latest
permissions
:
actions
:
read
contents
:
read
security-events
:
write
steps
:
#
Checkout the repository to the GitHub Actions runner
-
name
:
Checkout code
uses
:
actions/checkout@v3
-
name
:
PowerShell Module Cache
uses
:
potatoqualitee/psmodulecache@v6.2
with
:
modules-to-cache
:
PSScriptAnalyzer, ConvertToSARIF, Az.Network
#
Not using microsoft/psscriptanalyzer-action@v1.0 because we're missing psm1 in src + need to exclude generated ps1xml
-
name
:
Run PSScriptAnalyzer
shell
:
pwsh
run
:
|
Import-Module ConvertToSARIF -Force
Get-ChildItem -Path . -Filter *.ps* -Recurse -File |
Invoke-ScriptAnalyzer |
ConvertTo-SARIF -FilePath results.sarif
#
Upload the SARIF file generated in the previous step
-
name
:
Upload SARIF results file
uses
:
github/codeql-action/upload-sarif@v3
with
:
sarif_file
:
results.sarif
Back
|
FazBrowse Home
|
New Git URL