Commit 841b213 1 parent 77833a4 commit 841b213 Copy full SHA for 841b213
File tree 1 file changed +11
-2
lines changed
.github/actions/check-submodules/dist
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -27978,8 +27978,17 @@ const checkSubmodules = async function () {
27978
27978
if (nonCrtRepo.test(submodule.name)) {
27979
27979
const isOnMain = await isAncestor(diff.thisCommit, 'origin/main', submodule.path);
27980
27980
if (!isOnMain) {
27981
- core.setFailed(`Submodule ${submodule.name} is using a branch`);
27982
- return;
27981
+ if (/^(aws-lc)$/.test(submodule.name)) {
27982
+ // for aws-lc we also use fips-2022-11-02 branch for FIPS support.
27983
+ const isOnFIPS = await isAncestor(diff.thisCommit, 'origin/fips-2022-11-02', submodule.path);
27984
+ if (!isOnFIPS) {
27985
+ core.setFailed(`Submodule ${submodule.name} is using a branch`);
27986
+ return;
27987
+ }
27988
+ } else {
27989
+ core.setFailed(`Submodule ${submodule.name} is using a branch`);
27990
+ return;
27991
+ }
27983
27992
}
27984
27993
} else {
27985
27994
core.setFailed(`Submodule ${submodule.name} is not using a tagged release`);
You can’t perform that action at this time.
0 commit comments