Skip to content

Commit

Permalink
track secureScoreControlProfile.rank as control.tag.rank
Browse files Browse the repository at this point in the history
  • Loading branch information
meme112233 committed Aug 5, 2024
1 parent fb8203f commit 15c96a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/hdf-converters/src/msft-secure-score-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ export class MsftSecureScoreMapper extends BaseConverter {
);
}
},
rank: {
transformer: (data: ControlScore) => {
// return rank from the profile document where its id matches the controlName
return this.getProfiles(data.controlName || '').map(
(profile) => profile.rank
);
}
},
userImpacts: {
transformer: (data: ControlScore) => {
// return userImpacts from the profile document where its id matches the controlName
Expand Down

0 comments on commit 15c96a3

Please sign in to comment.