Commit 95cc84d 1 parent decf7aa commit 95cc84d Copy full SHA for 95cc84d
File tree 1 file changed +12
-2
lines changed
.github/actions/check-submodules
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,18 @@ const checkSubmodules = async function () {
143
143
if ( nonCrtRepo . test ( submodule . name ) ) {
144
144
const isOnMain = await isAncestor ( diff . thisCommit , 'origin/main' , submodule . path ) ;
145
145
if ( ! isOnMain ) {
146
- core . setFailed ( `Submodule ${ submodule . name } is using a branch` ) ;
147
- return ;
146
+ const awslc = / ^ ( a w s - l c ) $ /
147
+ if ( awslc . test ( submodule . name ) ) {
148
+ // for aws-lc we also use fips-2022-11-02 branch for FIPS support.
149
+ const isOnFIPS = await isAncestor ( diff . thisCommit , 'origin/fips-2022-11-02' , submodule . path ) ;
150
+ if ( ! isOnFIPS ) {
151
+ core . setFailed ( `Submodule ${ submodule . name } is using a branch` ) ;
152
+ return ;
153
+ }
154
+ } else {
155
+ core . setFailed ( `Submodule ${ submodule . name } is using a branch` ) ;
156
+ return ;
157
+ }
148
158
}
149
159
} else {
150
160
core . setFailed ( `Submodule ${ submodule . name } is not using a tagged release` ) ;
You can’t perform that action at this time.
0 commit comments