Skip to content

Commit f1c3fff

Browse files
perform scans on azure pipeline
1 parent 90fa3fb commit f1c3fff

File tree

4 files changed

+51
-67
lines changed

4 files changed

+51
-67
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ on:
99
pull_request:
1010
branches:
1111
- main
12-
workflow_dispatch:
13-
inputs:
14-
run_security_scans:
15-
description: 'Run FOSSA and CODEQL scans'
16-
required: false
17-
default: 'false'
1812

1913
jobs:
2014
commit-lint:
@@ -29,8 +23,4 @@ jobs:
2923
secrets:
3024
UIPATH_URL: ${{ secrets.UIPATH_URL }}
3125
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
32-
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
33-
34-
security-scans:
35-
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.run_security_scans =='true')
36-
uses: ./.github/workflows/security-scans.yml
26+
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}

.github/workflows/security-scans.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.pipelines/security-scans.yml

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