Skip to content

Commit 5a925f2

Browse files
chore: add security scans
1 parent c813a66 commit 5a925f2

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
secrets:
2424
UIPATH_URL: ${{ secrets.UIPATH_URL }}
2525
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
26-
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
26+
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}

.pipelines/security-scans.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
6+
pr: none
7+
8+
resources:
9+
repositories:
10+
- repository: codeql
11+
type: github
12+
name: UiPath/AzurePipelinesTemplates
13+
ref: refs/tags/uipath.security.codeql.1.9.5
14+
endpoint: UiPath
15+
- repository: fossa
16+
type: github
17+
name: UiPath/AzurePipelinesTemplates
18+
ref: refs/tags/uipath.security.fossa.3.0.13
19+
endpoint: UiPath
20+
21+
variables:
22+
- template: ./variables.yml
23+
24+
stages:
25+
- stage: FOSSA
26+
dependsOn: []
27+
jobs:
28+
- job: FOSSA
29+
steps:
30+
- template: Security/fossa.steps.yml@fossa
31+
parameters:
32+
OS: linux
33+
azureSubscription: $(azureInternalProductionEaConnectionName)
34+
FOSSAFlags: '--project "uipath-langchain-python" --branch "$(Build.SourceBranch)" --revision "$(Build.SourceVersion)-$(Build.BuildId)"'
35+
FOSSATestFlags: '--project "uipath-langchain-python" --revision "$(Build.SourceVersion)-$(Build.BuildId)"'
36+
${{ if contains(variables['Build.SourceBranch'], 'main') }}:
37+
publishSecurityReports: true
38+
39+
40+
- stage: CODEQL
41+
dependsOn: []
42+
jobs:
43+
- job: CODEQL
44+
steps:
45+
- template: Security/codeql.interpreted.steps.yml@codeql
46+
parameters:
47+
os: 'linux64'
48+
language: 'python'
49+
azureSubscription: $(azureInternalProductionEaConnectionName)

.pipelines/variables.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
variables:
2+
azureInternalProductionEaConnectionName: Internal-Production-EA

0 commit comments

Comments
 (0)