Skip to content

Commit 49b71db

Browse files
committed
Add auth extension & tests
Signed-off-by: Victor Chang <[email protected]>
1 parent 8a1bbfe commit 49b71db

30 files changed

+1552
-20
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ jobs:
8383
actions: read
8484
contents: read
8585
security-events: write
86-
strategy:
87-
fail-fast: false
88-
matrix:
89-
language: [ 'csharp' ]
9086

9187
steps:
9288
- name: Checkout repository
@@ -280,13 +276,6 @@ jobs:
280276
ls -lR $PACKAGEDIR
281277
working-directory: ./src
282278

283-
- name: Zip Plug-ins
284-
if: ${{ matrix.os == 'ubuntu-latest' }}
285-
run: |
286-
./package.sh
287-
ls -lR release/
288-
working-directory: ./src/Plugins
289-
290279
- name: Upload Nuget
291280
if: ${{ matrix.os == 'ubuntu-latest' }}
292281
uses: actions/[email protected]
@@ -295,14 +284,6 @@ jobs:
295284
path: ${{ github.workspace }}/release/*.nupkg
296285
retention-days: 30
297286

298-
- name: Upload Zipped Plug-ins
299-
if: ${{ matrix.os == 'ubuntu-latest' }}
300-
uses: actions/[email protected]
301-
with:
302-
name: plug-ins
303-
path: ${{ github.workspace }}/src/Plugins/release/*.zip
304-
retention-days: 30
305-
306287
publish:
307288
name: Publish to GitHub Packages
308289
runs-on: ubuntu-latest
@@ -395,7 +376,6 @@ jobs:
395376
repository: ${{ steps.repo.outputs._1 }}
396377
milestone: ${{ env.MAJORMINORPATCH }}
397378
name: Release v${{ env.MAJORMINORPATCH }}
398-
assets: plug-ins/Monai.Deploy.Security.zip
399379

400380
- name: Publish release with GitReleaseManager
401381
if: ${{ contains(github.ref, 'refs/heads/main') }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"ServerUri": "https://sonarcloud.io/",
3+
"Organization": {
4+
"Key": "project-monai",
5+
"Name": "Project MONAI"
6+
},
7+
"ProjectKey": "Project-MONAI_monai-deploy-security",
8+
"ProjectName": "monai-deploy-security",
9+
"Profiles": {
10+
"CSharp": {
11+
"ProfileKey": "AX96ONQSnTk2GEVJ9ILJ",
12+
"ProfileTimestamp": "2022-07-05T10:19:10Z"
13+
}
14+
}
15+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AnalysisInput xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<Settings>
4+
<Setting>
5+
<Key>sonar.cs.analyzeGeneratedCode</Key>
6+
<Value>false</Value>
7+
</Setting>
8+
<Setting>
9+
<Key>sonar.cs.file.suffixes</Key>
10+
<Value>.cs</Value>
11+
</Setting>
12+
<Setting>
13+
<Key>sonar.cs.ignoreHeaderComments</Key>
14+
<Value>true</Value>
15+
</Setting>
16+
<Setting>
17+
<Key>sonar.cs.roslyn.ignoreIssues</Key>
18+
<Value>false</Value>
19+
</Setting>
20+
</Settings>
21+
<Rules>
22+
<Rule>
23+
<Key>S107</Key>
24+
<Parameters>
25+
<Parameter>
26+
<Key>max</Key>
27+
<Value>7</Value>
28+
</Parameter>
29+
</Parameters>
30+
</Rule>
31+
<Rule>
32+
<Key>S110</Key>
33+
<Parameters>
34+
<Parameter>
35+
<Key>max</Key>
36+
<Value>5</Value>
37+
</Parameter>
38+
</Parameters>
39+
</Rule>
40+
<Rule>
41+
<Key>S1479</Key>
42+
<Parameters>
43+
<Parameter>
44+
<Key>maximum</Key>
45+
<Value>30</Value>
46+
</Parameter>
47+
</Parameters>
48+
</Rule>
49+
<Rule>
50+
<Key>S2342</Key>
51+
<Parameters>
52+
<Parameter>
53+
<Key>flagsAttributeFormat</Key>
54+
<Value>^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$</Value>
55+
</Parameter>
56+
<Parameter>
57+
<Key>format</Key>
58+
<Value>^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$</Value>
59+
</Parameter>
60+
</Parameters>
61+
</Rule>
62+
<Rule>
63+
<Key>S2436</Key>
64+
<Parameters>
65+
<Parameter>
66+
<Key>max</Key>
67+
<Value>2</Value>
68+
</Parameter>
69+
<Parameter>
70+
<Key>maxMethod</Key>
71+
<Value>3</Value>
72+
</Parameter>
73+
</Parameters>
74+
</Rule>
75+
<Rule>
76+
<Key>S3776</Key>
77+
<Parameters>
78+
<Parameter>
79+
<Key>propertyThreshold</Key>
80+
<Value>3</Value>
81+
</Parameter>
82+
<Parameter>
83+
<Key>threshold</Key>
84+
<Value>15</Value>
85+
</Parameter>
86+
</Parameters>
87+
</Rule>
88+
</Rules>
89+
</AnalysisInput>

0 commit comments

Comments
 (0)