-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1338 from Crown-Commercial-Service/p3sprint8
P3sprint8 release to production on 11-05-2023 at 2130 PM
- Loading branch information
Showing
35 changed files
with
584 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: "2" | ||
checks: | ||
argument-count: | ||
enabled: true | ||
complex-logic: | ||
enabled: true | ||
file-lines: | ||
enabled: false | ||
method-complexity: | ||
enabled: true | ||
config: | ||
threshold: 20 | ||
method-count: | ||
enabled: false | ||
method-lines: | ||
enabled: false | ||
nested-control-flow: | ||
enabled: true | ||
return-statements: | ||
enabled: true | ||
similar-code: | ||
enabled: false | ||
identical-code: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Git Secrets Scan | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
branches: [main, feature/*, p3sprint/*] | ||
|
||
jobs: | ||
git-secrets-scan: | ||
name: Git Secrets Scan | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install git secrets | ||
run: sudo apt-get update && sudo apt-get install git-secrets -y | ||
|
||
- name: Add custom secrets patterns | ||
run: git secrets --add '(\bBEGIN\b).*(PRIVATE KEY\b)' | ||
&& git secrets --add 'AKIA[0-9A-Z]{16}' | ||
&& git secrets --add '^([A-Za-z0-9/+=]{40,})$' | ||
&& git secrets --add '^ghp_[a-zA-Z0-9]{36}' | ||
&& git secrets --add '^github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}' | ||
&& git secrets --add '^v[0-9]\\.[0-9a-f]{40}' | ||
&& git secrets --add '[A-Za-z0-9+/]{88}==' | ||
&& git secrets --add '[A-Za-z0-9_-]{32}$' | ||
&& git secrets --add 'conclavesso[0-9a-z-]{84}' | ||
&& git secrets --add '\\b[a-z0-9]{80}\\b' | ||
&& git secrets --add '\\b[A-Z0-9]{50}\\b' | ||
&& git secrets --add '\\b[A-Z0-9]{58}\\b' | ||
&& git secrets --add '^[a-zA-Z0-9_-]{32,64}$' | ||
|
||
- name: Run git secrets scan | ||
run: | | ||
git secrets --scan | ||
- name: Send email notification | ||
uses: | ||
dawidd6/[email protected] | ||
if: always() | ||
|
||
with: | ||
server_address: ${{ secrets.SERVER_ADDRESS }} | ||
server_port: ${{ secrets.SERVER_PORT }} | ||
username: ${{ secrets.USER_NAME }} | ||
password: ${{ secrets.PASSWORD }} | ||
subject: Git Secrets Scan Results | ||
to: "[email protected]" | ||
from: "[email protected]" | ||
body: | | ||
Hi, | ||
The Git Secrets scan has completed for "${{ github.repository }}". Please review the results below: | ||
Scan Job URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
Scan Status: **${{ job.status }}** | ||
Thank You. | ||
Brickendon SecOps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,6 @@ a { | |
.role_group_table { | ||
padding: 0px 0px 0px 0 !important; | ||
} | ||
|
||
.hide_dots{ | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,98 @@ | ||
export interface Group { | ||
groupId: number; | ||
mfaEnabled: boolean; | ||
groupName: string; | ||
createdDate?: string; | ||
groupId: number; | ||
mfaEnabled: boolean; | ||
groupName: string; | ||
createdDate?: string; | ||
} | ||
|
||
export interface GroupList { | ||
organisationId: string; | ||
groupList: Group[] | ||
organisationId: string; | ||
groupList: Group[]; | ||
} | ||
|
||
export interface OrganisationGroupNameInfo { | ||
groupName?: string; | ||
groupName?: string; | ||
} | ||
|
||
export interface OrganisationGroupRequestInfo extends OrganisationGroupNameInfo { | ||
roleInfo?: OrganisationGroupRolePatchInfo, | ||
serviceRoleGroupInfo?: OrganisationGroupRolePatchInfo, | ||
userInfo?: OrganisationGroupUserPatchInfo | ||
export interface OrganisationGroupRequestInfo | ||
extends OrganisationGroupNameInfo { | ||
roleInfo?: OrganisationGroupRolePatchInfo; | ||
serviceRoleGroupInfo?: OrganisationGroupRolePatchInfo; | ||
userInfo?: OrganisationGroupUserPatchInfo; | ||
} | ||
|
||
|
||
export interface OrganisationGroupRolePatchInfo { | ||
addedRoleIds?: number[], | ||
removedRoleIds?: number[] | ||
addedServiceRoleGroupIds?: number[], | ||
removedServiceRoleGroupIds?: number[] | ||
addedRoleIds?: number[]; | ||
removedRoleIds?: number[]; | ||
addedServiceRoleGroupIds?: number[]; | ||
removedServiceRoleGroupIds?: number[]; | ||
} | ||
|
||
export interface OrganisationGroupServicePatchInfo { | ||
addedRoleIds: number[], | ||
removedRoleIds: number[] | ||
addedRoleIds: number[]; | ||
removedRoleIds: number[]; | ||
} | ||
|
||
export interface OrganisationGroupUserPatchInfo { | ||
addedUserIds: string[], | ||
removedUserIds: string[] | ||
addedUserIds: string[]; | ||
removedUserIds: string[]; | ||
} | ||
|
||
export interface RoleDetail { | ||
orgTypeEligibility?: number; | ||
description?: string | undefined; | ||
subscriptionTypeEligibility?: number; | ||
tradeEligibility?: number; | ||
enabled?: boolean; | ||
serviceName?: string | null; | ||
isDeleted?: boolean; | ||
orgTypeEligibility?: number; | ||
description?: string | undefined; | ||
subscriptionTypeEligibility?: number; | ||
tradeEligibility?: number; | ||
enabled?: boolean; | ||
serviceName?: string | null; | ||
isDeleted?: boolean; | ||
} | ||
|
||
export interface Role extends RoleDetail { | ||
pendingStatus?: boolean; | ||
roleId: number; | ||
roleKey: string; | ||
roleName: string; | ||
pendingStatus?: boolean; | ||
roleId: number; | ||
roleKey: string; | ||
roleName: string; | ||
} | ||
|
||
export interface ServiceRoleGroup extends RoleDetail { | ||
id: number; | ||
key: string; | ||
name: string; | ||
id: number; | ||
key: string; | ||
name: string; | ||
} | ||
|
||
|
||
export interface CheckBoxRoleListGridSource extends Role { | ||
isChecked?: boolean | ||
isDisable?: any | ||
|
||
isChecked?: boolean; | ||
isDisable?: any; | ||
} | ||
|
||
export interface OrganisationGroupResponseInfo extends Group { | ||
roles: GroupRole[], | ||
users: GroupUser[] | ||
serviceRoleGroups: GroupRole[], | ||
roles: GroupRole[]; | ||
users: GroupUser[]; | ||
serviceRoleGroups: GroupRole[]; | ||
} | ||
|
||
export interface GroupRole { | ||
id: number; | ||
name: string; | ||
id: number; | ||
name: string; | ||
} | ||
|
||
export interface GroupUser { | ||
userId: string; | ||
name: string; | ||
isAdmin: boolean; | ||
} | ||
userId: string; | ||
name: string; | ||
isAdmin: boolean; | ||
} | ||
|
||
export interface pendingApprovalResponce { | ||
currentPage: number; | ||
groupUser: pendingApprovalGroupRole[]; | ||
pageCount: number; | ||
rowCount: number; | ||
} | ||
|
||
export interface pendingApprovalGroupRole { | ||
isAdmin: boolean; | ||
userPendingRoleStatus: number; | ||
name: string; | ||
userId: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.