Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
4f83e5d
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 18, 2023
0192123
Merge pull request #1505 from microsoft/dependabot/github_actions/git…
baywet Dec 18, 2023
3d551de
Bump Verify.Xunit from 22.8.0 to 22.10.0
dependabot[bot] Dec 22, 2023
18df497
Merge pull request #1508 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Dec 24, 2023
26d3781
Bump xunit.runner.visualstudio from 2.5.5 to 2.5.6
dependabot[bot] Dec 25, 2023
18eb15f
Merge pull request #1511 from microsoft/dependabot/nuget/xunit.runner…
baywet Dec 26, 2023
ae5d32c
Bump xunit from 2.6.3 to 2.6.4
dependabot[bot] Dec 26, 2023
964e9be
Merge pull request #1509 from microsoft/dependabot/nuget/xunit-2.6.4
baywet Dec 26, 2023
09c9a74
Bump Verify.Xunit from 22.10.0 to 22.10.2
dependabot[bot] Dec 26, 2023
58e63cf
Merge pull request #1510 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Dec 26, 2023
68c98bc
Bump Verify.Xunit from 22.10.2 to 22.11.0
dependabot[bot] Dec 27, 2023
ce628d2
Merge pull request #1512 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Dec 28, 2023
5b11414
Bump Verify.Xunit from 22.11.0 to 22.11.1
dependabot[bot] Dec 28, 2023
d5c9ac8
Merge pull request #1513 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Dec 29, 2023
d3eb935
Bump Verify.Xunit from 22.11.1 to 22.11.2
dependabot[bot] Jan 4, 2024
452c629
Merge pull request #1514 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Jan 4, 2024
ab3d84f
Bump xunit from 2.6.4 to 2.6.5
dependabot[bot] Jan 5, 2024
f8822ff
Merge pull request #1516 from microsoft/dependabot/nuget/xunit-2.6.5
baywet Jan 6, 2024
fceb79d
Bump Verify.Xunit from 22.11.2 to 22.11.4
dependabot[bot] Jan 6, 2024
9f4870b
Merge pull request #1518 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Jan 6, 2024
e3a5c93
Bump Microsoft.Windows.Compatibility from 8.0.0 to 8.0.1
dependabot[bot] Jan 9, 2024
ebb7903
Merge pull request #1520 from microsoft/dependabot/nuget/Microsoft.Wi…
baywet Jan 9, 2024
60d2640
- makes exception more explicit when inserting duplicated tree nodes
baywet Jan 10, 2024
f1ed266
Bump Verify.Xunit from 22.11.4 to 22.11.5
dependabot[bot] Jan 10, 2024
d48bf09
Merge pull request #1522 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Jan 10, 2024
1465fff
Merge pull request #1521 from microsoft/baywet-patch-1
baywet Jan 11, 2024
e036750
- fixes a bug where paths with multiple parameters would be considere…
baywet Dec 18, 2023
670b259
- adds additional test
baywet Dec 18, 2023
a9a9572
Merge pull request #1504 from microsoft/bugfix/conflicting-path
baywet Jan 11, 2024
7e98da4
Update build tasks
MaggieKimani1 Mar 30, 2023
d8b89d9
Fix indentation
MaggieKimani1 Mar 30, 2023
163b7bb
Fix binskim target argument
MaggieKimani1 Mar 31, 2023
4de9313
Merge pull request #1200 from microsoft/mk/update-compliance-tasks
MaggieKimani1 Jan 12, 2024
a0d1f23
Write out NaN and Infinity primitive values as valid JSON strings
MaggieKimani1 Jan 15, 2024
f72ef89
Add test to validate
MaggieKimani1 Jan 15, 2024
46a95c8
Remove unnecessary using
MaggieKimani1 Jan 15, 2024
dbe10d2
Merge pull request #1527 from microsoft/mk/fix-json-writer-outputs-in…
MaggieKimani1 Jan 15, 2024
a99baf2
Replaced RegEx with IndexOf/Substring to avoid RegexMatchTimeoutExcep…
mthesing88 Jan 13, 2024
d77d40a
Bump xunit from 2.6.5 to 2.6.6
dependabot[bot] Jan 15, 2024
31f39c4
Merge pull request #1528 from microsoft/dependabot/nuget/xunit-2.6.6
andrueastman Jan 16, 2024
e3eaf4a
Bump up conversion lib.
irvinesunday Jan 16, 2024
16e9c7a
Use the TimeOfDay property of a date value to determine whether its a…
MaggieKimani1 Jan 16, 2024
230a17b
Add a test to validate
MaggieKimani1 Jan 16, 2024
ad57d5c
Fix formatting
MaggieKimani1 Jan 16, 2024
efb6831
Merge pull request #1530 from microsoft/mk/fix-data-and-type-mismatch
MaggieKimani1 Jan 16, 2024
9b67690
Merge pull request #1529 from microsoft/is/update-conv-lib-hidi
MaggieKimani1 Jan 16, 2024
d26a6d1
Bump lib versions
MaggieKimani1 Jan 16, 2024
a97138f
Merge pull request #1525 from mus65/regexmatchtimeout
MaggieKimani1 Jan 16, 2024
217d40a
Merge pull request #1531 from microsoft/mk/bump-libs
MaggieKimani1 Jan 16, 2024
c84871b
Bump Verify.Xunit from 22.11.5 to 23.0.0
dependabot[bot] Jan 17, 2024
a64342b
Fixes errors/warnings on upgrade
Jan 18, 2024
627c400
Merge pull request #1534 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Jan 18, 2024
aa97082
- adds permissions to workflows
baywet Jan 22, 2024
39e732e
Bump actions/cache from 3 to 4
dependabot[bot] Jan 22, 2024
196ed74
Merge pull request #1537 from microsoft/dependabot/github_actions/act…
baywet Jan 22, 2024
17241ec
Merge pull request #1536 from microsoft/feature/wf-permissions
baywet Jan 23, 2024
b004ba6
Preserve examples in v2 files and write them out as extensions
MaggieKimani1 Jan 23, 2024
ef2b99d
Update tests and public API interface
MaggieKimani1 Jan 23, 2024
cfa49e9
Add examples constant to temp storage keys
MaggieKimani1 Jan 10, 2024
eda97ad
Load "x-examples" as Examples; store and retrieve from temp storage a…
MaggieKimani1 Jan 23, 2024
f600147
Default to an empty collection if examples is null
MaggieKimani1 Jan 23, 2024
61d50b5
Add a reference to the OpenApi.Tests project to access the string ext…
MaggieKimani1 Jan 10, 2024
e41b927
Add test to validate that a V2 doc with x-examples gets mapped to Med…
MaggieKimani1 Jan 10, 2024
eb9ba94
Add unit tests
MaggieKimani1 Jan 11, 2024
af5568c
Fix CodeQL warnings
MaggieKimani1 Jan 23, 2024
dc7cef8
Filter sequence using "Where"
MaggieKimani1 Jan 23, 2024
840c591
Update src/Microsoft.OpenApi.Readers/V2/OpenApiResponseDeserializer.cs
MaggieKimani1 Jan 11, 2024
9d226df
- adds missing using
baywet Jan 11, 2024
3f11c61
Add normalization; use constant for Examples extension
MaggieKimani1 Jan 23, 2024
5d69eda
Update API interface
MaggieKimani1 Jan 11, 2024
6cd8a82
Code cleanup and refactoring
MaggieKimani1 Jan 23, 2024
d4d7095
Bump Microsoft.OpenApi.OData from 1.6.0-preview.2 to 1.6.0-preview.3
dependabot[bot] Jan 23, 2024
de74419
Bump Verify.Xunit from 23.0.0 to 23.0.1
dependabot[bot] Jan 23, 2024
2e86f2e
Merge pull request #1539 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Jan 23, 2024
0adb312
Merge pull request #1540 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Jan 23, 2024
51d7b30
Add ValidationRuleSet.Remove (#1535)
LucGenetier Jan 24, 2024
7c17a09
Refactor the LoadExtensions method for reuse
MaggieKimani1 Jan 25, 2024
37c097e
Fetch the examples from storage and append them to the resulting body…
MaggieKimani1 Jan 25, 2024
73cb87e
Revert change
MaggieKimani1 Jan 25, 2024
c8a4a00
Add tests to validate processing multiple examples in a body paramete…
MaggieKimani1 Jan 25, 2024
e3e8fc7
Refactor code for reuse
MaggieKimani1 Jan 25, 2024
fa9306f
Remove method from interface to prevent a breaking change
MaggieKimani1 Jan 25, 2024
7882fdd
Update public API interface
MaggieKimani1 Jan 25, 2024
7fd69b9
Bump Microsoft.OpenApi.OData from 1.6.0-preview.3 to 1.6.0-preview.4
dependabot[bot] Jan 25, 2024
1316ee9
Merge pull request #1541 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Jan 25, 2024
c195b73
Merge pull request #1538 from microsoft/mk/fix-v2-examples-serializat…
MaggieKimani1 Jan 26, 2024
b277208
Bump lib versions
MaggieKimani1 Jan 29, 2024
d16d3bc
Merge pull request #1542 from microsoft/mk/release-libs
MaggieKimani1 Jan 29, 2024
e82576a
Bump Microsoft.OpenApi.OData from 1.6.0-preview.4 to 1.6.0-preview.5
dependabot[bot] Feb 1, 2024
9c36ef3
Merge pull request #1546 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Feb 1, 2024
ca77751
Update readme.md
MaggieKimani1 Feb 5, 2024
001f1a0
Bump conversion lib. (#1548)
irvinesunday Feb 5, 2024
fccda23
Bump Verify.Xunit from 23.0.1 to 23.1.0
dependabot[bot] Feb 5, 2024
9773f7e
Merge pull request #1550 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Feb 5, 2024
b195c6a
Add missing codeql permissions (#1551)
irvinesunday Feb 6, 2024
ebfc2ba
Bump Microsoft.NET.Test.Sdk from 17.8.0 to 17.9.0
dependabot[bot] Feb 6, 2024
9d15ca3
Merge pull request #1552 from microsoft/dependabot/nuget/Microsoft.NE…
baywet Feb 6, 2024
3c987ad
Update command option description
MaggieKimani1 Feb 7, 2024
d812ec5
Merge pull request #1547 from microsoft/mk/update-hidi-cmd-options
MaggieKimani1 Feb 7, 2024
58cfb22
Bump SharpYaml from 2.1.0 to 2.1.1
dependabot[bot] Feb 13, 2024
e3c387c
Bump Microsoft.Windows.Compatibility from 8.0.1 to 8.0.2
dependabot[bot] Feb 13, 2024
cf2f60e
Merge pull request #1557 from microsoft/dependabot/nuget/Microsoft.Wi…
baywet Feb 13, 2024
a3c2d1e
Merge pull request #1556 from microsoft/dependabot/nuget/SharpYaml-2.1.1
baywet Feb 13, 2024
c66ea77
Bump Verify.Xunit from 23.1.0 to 23.2.0
dependabot[bot] Feb 15, 2024
3ff45fa
Merge pull request #1559 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Feb 15, 2024
cac6220
Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7
dependabot[bot] Feb 16, 2024
a4d2e8a
Merge pull request #1560 from microsoft/dependabot/nuget/xunit.runner…
baywet Feb 17, 2024
11608ef
Bump xunit from 2.6.6 to 2.7.0
dependabot[bot] Feb 17, 2024
9ebc02e
Merge pull request #1561 from microsoft/dependabot/nuget/xunit-2.7.0
baywet Feb 17, 2024
b1d24f0
Bump coverlet.collector from 6.0.0 to 6.0.1
dependabot[bot] Feb 21, 2024
be59a4f
Bump Verify.Xunit from 23.2.0 to 23.2.1
dependabot[bot] Feb 21, 2024
aa1fa5a
Merge pull request #1566 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Feb 21, 2024
8b4ce57
Merge pull request #1564 from microsoft/dependabot/nuget/coverlet.col…
baywet Feb 21, 2024
783c122
Bump coverlet.msbuild from 6.0.0 to 6.0.1
dependabot[bot] Feb 21, 2024
e0e5ca3
Merge pull request #1565 from microsoft/dependabot/nuget/coverlet.msb…
andrueastman Feb 22, 2024
11b71b4
Bump SharpYaml from 2.1.0 to 2.1.1
dependabot[bot] Feb 23, 2024
942b6ca
Bump Microsoft.OpenApi.OData from 1.6.0-preview.7 to 1.6.0-preview.8
dependabot[bot] Feb 23, 2024
1bf8e53
Merge pull request #1568 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Feb 23, 2024
c7aa71a
Merge pull request #1567 from microsoft/dependabot/nuget/SharpYaml-2.1.1
baywet Feb 24, 2024
4f36bc2
Bump Verify.Xunit from 23.2.1 to 23.2.2
dependabot[bot] Feb 27, 2024
826922a
Merge pull request #1570 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Feb 27, 2024
7709058
Bump Microsoft.OpenApi.OData from 1.6.0-preview.8 to 1.6.0-preview.9
dependabot[bot] Mar 1, 2024
61f467d
Merge pull request #1573 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Mar 1, 2024
72c9b7d
Bump Hidi (#1574)
irvinesunday Mar 4, 2024
43f6d64
Bump Microsoft.OpenApi.OData from 1.6.0-preview.9 to 1.6.0-preview.10
dependabot[bot] Mar 4, 2024
ced6b71
Merge pull request #1576 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Mar 4, 2024
5cadbb2
- upgrades hidi to net 8
baywet Mar 5, 2024
77f2394
- bumps hidi patch version
baywet Mar 5, 2024
354c204
- upgrades missing test projects
baywet Mar 5, 2024
e65b484
Merge pull request #1577 from microsoft/feature/net8
baywet Mar 5, 2024
9a47cb2
Pass the leave open setting to the StreamReader constructor to preven…
MaggieKimani1 Mar 6, 2024
9de2aec
Add test to validate
MaggieKimani1 Mar 6, 2024
9036a21
Remove unnecessary param name
MaggieKimani1 Mar 6, 2024
2f64478
Merge pull request #1581 from microsoft/mk/fix-stream-leave-open
MaggieKimani1 Mar 6, 2024
d763e53
Update the Read and ReadFragment method to be consistent with the change
MaggieKimani1 Mar 6, 2024
f749231
Merge pull request #1582 from microsoft/mk/fix-stream-leave-open
MaggieKimani1 Mar 6, 2024
8f8cd5e
Release libs
MaggieKimani1 Mar 6, 2024
a2185ea
Merge pull request #1583 from microsoft/mk/release-libraries
MaggieKimani1 Mar 6, 2024
2741740
Bump Verify.Xunit from 23.2.2 to 23.2.3
dependabot[bot] Mar 6, 2024
a6ea282
Merge pull request #1586 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Mar 6, 2024
efe8071
Bump Verify.Xunit from 23.2.3 to 23.3.0
dependabot[bot] Mar 7, 2024
0373d02
Merge pull request #1587 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Mar 8, 2024
41febcd
Bump docker/build-push-action from 5.1.0 to 5.2.0
dependabot[bot] Mar 11, 2024
c78cbf0
Bump mathieudutour/github-tag-action from 6.1 to 6.2
dependabot[bot] Mar 11, 2024
de5f430
Merge pull request #1588 from microsoft/dependabot/github_actions/doc…
baywet Mar 11, 2024
19e2cc0
Merge pull request #1589 from microsoft/dependabot/github_actions/mat…
baywet Mar 11, 2024
2cb8f05
Bump Verify.Xunit from 23.3.0 to 23.4.0
dependabot[bot] Mar 11, 2024
aa10701
Merge pull request #1590 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Mar 11, 2024
f2b302a
Bump Microsoft.Windows.Compatibility from 8.0.2 to 8.0.3
dependabot[bot] Mar 12, 2024
30ca593
Bump Verify.Xunit from 23.4.0 to 23.5.0
dependabot[bot] Mar 12, 2024
d3d571e
Bump Microsoft.Extensions.Logging.Abstractions from 8.0.0 to 8.0.1
dependabot[bot] Mar 12, 2024
bb2580d
Merge pull request #1593 from microsoft/dependabot/nuget/Microsoft.Ex…
baywet Mar 12, 2024
a79b347
Merge pull request #1591 from microsoft/dependabot/nuget/Microsoft.Wi…
baywet Mar 12, 2024
bdc8e17
Merge pull request #1592 from microsoft/dependabot/nuget/Verify.Xunit…
baywet Mar 12, 2024
b4883ee
Bump coverlet.msbuild from 6.0.1 to 6.0.2
dependabot[bot] Mar 13, 2024
c29907d
Merge pull request #1595 from microsoft/dependabot/nuget/coverlet.msb…
andrueastman Mar 14, 2024
c753a9b
Bump coverlet.collector from 6.0.1 to 6.0.2
dependabot[bot] Mar 14, 2024
0c6395e
Merge pull request #1596 from microsoft/dependabot/nuget/coverlet.col…
andrueastman Mar 14, 2024
041e9e8
Bump Verify.Xunit from 23.5.0 to 23.5.1
dependabot[bot] Mar 15, 2024
868e468
Merge pull request #1597 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Mar 18, 2024
1b74e11
Bump Microsoft.OpenApi.OData from 1.6.0-preview.10 to 1.6.0
dependabot[bot] Mar 18, 2024
3ae9c52
Bump Verify.Xunit from 23.5.1 to 23.5.2
dependabot[bot] Mar 18, 2024
537af2e
Bump docker/login-action from 3.0.0 to 3.1.0
dependabot[bot] Mar 18, 2024
ee8027a
Bump docker/build-push-action from 5.2.0 to 5.3.0
dependabot[bot] Mar 18, 2024
318d7b4
Merge pull request #1599 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Mar 18, 2024
571990d
Merge pull request #1600 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Mar 19, 2024
1192a6e
Merge pull request #1601 from microsoft/dependabot/github_actions/doc…
andrueastman Mar 19, 2024
8ec9b8c
Merge pull request #1602 from microsoft/dependabot/github_actions/doc…
andrueastman Mar 19, 2024
41d0049
Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0
dependabot[bot] Mar 25, 2024
50438ba
Merge pull request #1604 from microsoft/dependabot/github_actions/dep…
baywet Mar 25, 2024
db6d3b6
Bump Verify.Xunit from 23.5.2 to 23.6.0
dependabot[bot] Mar 27, 2024
33e578b
Merge pull request #1605 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Mar 28, 2024
7926dc2
Bump Microsoft.OpenApi.OData from 1.6.0 to 1.6.1
dependabot[bot] Mar 28, 2024
9373ed4
Merge pull request #1606 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Mar 28, 2024
7ed25ed
Merge remote-tracking branch 'origin/vnext' into mk/sync-v2-with-vnex…
MaggieKimani1 Apr 3, 2024
0f5e411
Resolve conflicts and clean up code
MaggieKimani1 Apr 3, 2024
928b146
Remove obsolete attribute and update API interface
MaggieKimani1 Apr 3, 2024
f11170b
Represent NaN, Infinity and -Infinity as string literals for JSON ser…
MaggieKimani1 Apr 3, 2024
590fcbe
Merge remote-tracking branch 'origin/release/2.0.0' into mk/sync-v2-w…
MaggieKimani1 Apr 3, 2024
6087665
Update API interface
MaggieKimani1 Apr 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 27 additions & 22 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pool:
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
ProductBinPath: '$(Build.SourcesDirectory)\src\Microsoft.OpenApi\bin\$(BuildConfiguration)'
ProductBinPath: '$(Build.SourcesDirectory)\src\Microsoft.OpenApi\bin\$(BuildConfiguration)'


stages:
Expand All @@ -31,22 +31,22 @@ stages:
- job: build
steps:
- task: UseDotNet@2
displayName: 'Use .NET 2' # needed for ESRP signing
displayName: 'Use .NET 6' # needed for ESRP signing
inputs:
version: 2.x
version: 6.x

- task: UseDotNet@2
displayName: 'Use .NET 8'
inputs:
version: 8.x

- task: PoliCheck@1
- task: PoliCheck@2
displayName: 'Run PoliCheck "/src"'
inputs:
inputType: CmdLine
cmdLineArgs: '/F:$(Build.SourcesDirectory)/src /T:9 /Sev:"1|2" /PE:2 /O:poli_result_src.xml'

- task: PoliCheck@1
- task: PoliCheck@2
displayName: 'Run PoliCheck "/test"'
inputs:
inputType: CmdLine
Expand Down Expand Up @@ -75,14 +75,14 @@ stages:
arguments: '--configuration $(BuildConfiguration) --no-build'

# CredScan
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: 'Run CredScan - Src'
inputs:
toolMajorVersion: 'V2'
scanFolder: '$(Build.SourcesDirectory)\src'
debugMode: false

- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: 'Run CredScan - Test'
inputs:
toolMajorVersion: 'V2'
Expand All @@ -95,34 +95,38 @@ stages:
FileDirPath: '$(ProductBinPath)'
enabled: false

- task: BinSkim@3
- task: BinSkim@4
displayName: 'Run BinSkim - Product Binaries'
inputs:
InputType: Basic
AnalyzeTarget: '$(ProductBinPath)\**\Microsoft.OpenApi.dll'
AnalyzeTargetGlob: '$(ProductBinPath)\**\Microsoft.OpenApi.dll'
AnalyzeSymPath: '$(ProductBinPath)'
AnalyzeVerbose: true
AnalyzeHashes: true
AnalyzeEnvironment: true

- task: PublishSecurityAnalysisLogs@2
- task: PublishSecurityAnalysisLogs@3
displayName: 'Publish Security Analysis Logs'
inputs:
ArtifactName: SecurityLogs

- task: PostAnalysis@1
- task: PostAnalysis@2
displayName: 'Post Analysis'
inputs:
BinSkim: true
CredScan: true
PoliCheck: true

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
- task: EsrpCodeSigning@2
displayName: 'ESRP CodeSigning'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: src
signConfigType: inlineSignParams
UseMinimatch: true
Pattern: |
**\*.exe
**\*.dll
inlineOperation: |
[
{
Expand Down Expand Up @@ -162,26 +166,27 @@ stages:
}
]
SessionTimeout: 20

# Pack
- pwsh: dotnet pack $(Build.SourcesDirectory)/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj -o $(Build.ArtifactStagingDirectory) --configuration $(BuildConfiguration) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg
displayName: 'pack OpenAPI'

# Pack
- pwsh: dotnet pack $(Build.SourcesDirectory)/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj -o $(Build.ArtifactStagingDirectory) --configuration $(BuildConfiguration) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg
displayName: 'pack Readers'

# Pack
- pwsh: dotnet pack $(Build.SourcesDirectory)/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj -o $(Build.ArtifactStagingDirectory) --configuration $(BuildConfiguration) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg
displayName: 'pack Hidi'
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'pack Hidi'

- task: EsrpCodeSigning@2
displayName: 'ESRP CodeSigning Nuget Packages'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: '$(Build.ArtifactStagingDirectory)'
Pattern: '*.nupkg'
signConfigType: inlineSignParams
UseMinimatch: true
inlineOperation: |
[
{
Expand Down Expand Up @@ -209,7 +214,7 @@ stages:
$xml = [Xml] (Get-Content .\src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj)
$version = $xml.Project.PropertyGroup.Version
echo $version
echo "##vso[task.setvariable variable=hidiversion]$version"
echo "##vso[task.setvariable variable=hidiversion]$version"

# publish hidi as an .exe
- task: DotNetCoreCLI@2
Expand All @@ -219,7 +224,7 @@ stages:
arguments: -c Release --runtime win-x64 /p:PublishSingleFile=true /p:PackAsTool=false --self-contained --output $(Build.ArtifactStagingDirectory)/Microsoft.OpenApi.Hidi-v$(hidiversion)
projects: 'src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj'
publishWebProjects: False
zipAfterPublish: false
zipAfterPublish: false

- task: CopyFiles@2
displayName: Prepare staging folder for upload
Expand All @@ -236,7 +241,7 @@ stages:

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Hidi'
inputs:
inputs:
ArtifactName: Microsoft.OpenApi.Hidi-v$(hidiversion)
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Microsoft.OpenApi.Hidi-v$(hidiversion)'

Expand Down Expand Up @@ -295,8 +300,8 @@ stages:
{ "label" : "enhancement", "V2-Enhancement", "displayName" : "Enhancements", "state" : "closed" },
{ "label" : "bug", "bug-fix", "displayName" : "Bugs", "state" : "closed" },
{ "label" : "documentation", "doc", "displayName" : "Documentation", "state" : "closed"},
{ "label" : "dependencies", "displayName" : "Package Updates", "state" : "closed" }]'
{ "label" : "dependencies", "displayName" : "Package Updates", "state" : "closed" }]'

- deployment: deploy_lib
dependsOn: []
environment: nuget-org
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
uses: dependabot/fetch-metadata@v2.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI/CD Pipeline

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
ci:
name: Continuous Integration
Expand Down Expand Up @@ -49,7 +52,7 @@ jobs:
- if: steps.conditionals_handler.outputs.is_default_branch == 'true'
name: Bump GH tag
id: tag_generator
uses: mathieudutour/github-tag-action@v6.1
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
schedule:
- cron: '0 8 * * *'

permissions:
contents: read # these permissions are required to run the codeql analysis
actions: read
security-events: write

jobs:
analyze:
name: CodeQL Analysis
Expand All @@ -23,7 +28,7 @@ jobs:

- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
queries: security-and-quality

Expand All @@ -43,6 +48,6 @@ jobs:

- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to GitHub package feed
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3.1.0
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
Expand All @@ -30,13 +30,13 @@ jobs:
id: getversion
- name: Push to GitHub Packages - Nightly
if: ${{ github.ref == 'refs/heads/vnext' }}
uses: docker/build-push-action@v5.1.0
uses: docker/build-push-action@v5.3.0
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
- name: Push to GitHub Packages - Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v5.1.0
uses: docker/build-push-action@v5.3.0
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }}
13 changes: 7 additions & 6 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
types: [opened, synchronize, reopened]
paths-ignore: ['.vscode/**']


permissions:
contents: read
pull-requests: read

env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Expand All @@ -34,10 +39,6 @@ jobs:
with:
distribution: 'adopt'
java-version: 17
- name: Setup .NET 5 # At the moment the scanner requires dotnet 5 https://www.nuget.org/packages/dotnet-sonarscanner
uses: actions/setup-dotnet@v4
with:
dotnet-version: 5.0.x
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
Expand All @@ -46,14 +47,14 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.sonar/scanner
key: ${{ runner.os }}-sonar-scanner
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/Microsoft.OpenApi.Hidi/bin/Debug/net7.0/Microsoft.OpenApi.Hidi.dll",
"program": "${workspaceFolder}/src/Microsoft.OpenApi.Hidi/bin/Debug/net8.0/Microsoft.OpenApi.Hidi.dll",
"args": ["plugin",
"-m","C:\\Users\\darrmi\\src\\github\\microsoft\\openapi.net\\test\\Microsoft.OpenApi.Hidi.Tests\\UtilityFiles\\exampleapimanifest.json",
"--of","./output"],
Expand All @@ -28,7 +28,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/Microsoft.OpenApi.WorkBench/bin/Debug/net7.0-windows/Microsoft.OpenApi.Workbench.exe",
"program": "${workspaceFolder}/src/Microsoft.OpenApi.WorkBench/bin/Debug/net8.0-windows/Microsoft.OpenApi.Workbench.exe",
"args": [],
"cwd": "${workspaceFolder}/src/Microsoft.OpenApi.Workbench",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY ./src ./hidi/src
Expand All @@ -7,10 +7,10 @@ COPY ./README.md ./hidi/README.md
WORKDIR /app/hidi
RUN dotnet publish ./src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj -c Release

FROM mcr.microsoft.com/dotnet/runtime:7.0 AS runtime
FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled AS runtime
WORKDIR /app

COPY --from=build-env /app/hidi/src/Microsoft.OpenApi.Hidi/bin/Release/net7.0 ./
COPY --from=build-env /app/hidi/src/Microsoft.OpenApi.Hidi/bin/Release/net8.0 ./

VOLUME /app/output
VOLUME /app/openapi.yml
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Nullable>enable</Nullable>
<ToolCommandName>hidi</ToolCommandName>
<PackageOutputPath>./../../artifacts</PackageOutputPath>
<Version>1.3.6</Version>
<Version>1.4.0</Version>
<Description>OpenAPI.NET CLI tool for slicing OpenAPI documents</Description>
<SignAssembly>true</SignAssembly>
<!-- https://github.com/dotnet/sourcelink/blob/main/docs/README.md#embeduntrackedsources -->
Expand All @@ -30,12 +30,12 @@
<ItemGroup>
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageReference Include="Microsoft.OData.Edm" Version="7.20.0" />
<PackageReference Include="Microsoft.OpenApi.OData" Version="1.5.0" />
<PackageReference Include="Microsoft.OpenApi.OData" Version="1.6.1" />
<PackageReference Include="Microsoft.OpenApi.ApiManifest" Version="0.5.0-preview" />
<PackageReference Include="System.CommandLine.Hosting" Version="0.4.0-alpha.22272.1" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.OpenApi.Hidi/OpenApiService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System;
Expand Down Expand Up @@ -285,7 +285,7 @@ private static async Task<OpenApiDocument> GetOpenApi(HidiOptions options, strin
predicate = OpenApiFilterService.CreatePredicate(tags: filterByTags);

}
if (requestUrls.Count != 0)
if (requestUrls.Count > 0)
{
logger.LogTrace("Creating predicate based on the paths and Http methods defined in the Postman collection.");
predicate = OpenApiFilterService.CreatePredicate(requestUrls: requestUrls, source: document);
Expand Down
Loading