Skip to content

Commit

Permalink
support fips branch for aws-lc (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Mar 12, 2024
1 parent 36ef287 commit fd71588
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/actions/check-submodules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,17 @@ const checkSubmodules = async function () {
if (nonCrtRepo.test(submodule.name)) {
const isOnMain = await isAncestor(diff.thisCommit, 'origin/main', submodule.path);
if (!isOnMain) {
core.setFailed(`Submodule ${submodule.name} is using a branch`);
return;
if (/^(aws-lc)$/.test(submodule.name)) {
// for aws-lc we also use fips-2022-11-02 branch for FIPS support.
const isOnFIPS = await isAncestor(diff.thisCommit, 'origin/fips-2022-11-02', submodule.path);
if (!isOnFIPS) {
core.setFailed(`Submodule ${submodule.name} is using a branch`);
return;
}
} else {
core.setFailed(`Submodule ${submodule.name} is using a branch`);
return;
}
}
} else {
core.setFailed(`Submodule ${submodule.name} is not using a tagged release`);
Expand Down

0 comments on commit fd71588

Please sign in to comment.