File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
.github/actions/check-codescanning-config Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ import * as assert from 'assert'
66
77const actualConfig = loadActualConfig ( )
88
9+ function sortConfigArrays ( config ) {
10+ for ( const key in Object . keys ( config ) ) {
11+ const value = config [ key ] ;
12+ if ( key === 'queries' && Array . isArray ( value ) ) {
13+ config [ key ] = value . sort ( ) ;
14+ }
15+ }
16+ return config ;
17+ }
18+
919const rawExpectedConfig = process . argv [ 3 ] . trim ( )
1020if ( ! rawExpectedConfig ) {
1121 core . setFailed ( 'No expected configuration provided' )
@@ -18,8 +28,8 @@ if (!rawExpectedConfig) {
1828const expectedConfig = rawExpectedConfig ? JSON . parse ( rawExpectedConfig ) : undefined ;
1929
2030assert . deepStrictEqual (
21- actualConfig ,
22- expectedConfig ,
31+ sortConfigArrays ( actualConfig ) ,
32+ sortConfigArrays ( expectedConfig ) ,
2333 'Expected configuration does not match actual configuration'
2434) ;
2535
You can’t perform that action at this time.
0 commit comments