Skip to content

Commit a23b99b

Browse files
authored
Merge pull request #32 from KelvinTegelaar/main
[pull] main from KelvinTegelaar:main
2 parents f54a36b + 93b02f1 commit a23b99b

File tree

11 files changed

+131
-118
lines changed

11 files changed

+131
-118
lines changed

.github/workflows/cipp_dev_build.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
name: CIPP Frontend Build
1+
name: CIPP Frontend Dev Build
22

33
on:
44
push:
55
branches:
66
- dev
77
workflow_dispatch:
88

9-
permissions:
10-
contents: write
11-
129
jobs:
1310
build:
1411
if: github.event.repository.fork == false
@@ -18,11 +15,11 @@ jobs:
1815
steps:
1916
# Checkout the repository
2017
- name: Checkout Code
21-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4.2.2
2219

2320
# Set up Node.js
2421
- name: Set up Node.js
25-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4.2.0
2623
with:
2724
node-version: '20.18.1'
2825

@@ -43,7 +40,7 @@ jobs:
4340
4441
# Upload to Azure Blob Storage
4542
- name: Azure Blob Upload
46-
uses: LanceMcCarthy/Action-AzureBlobUpload@v3.3.0
43+
uses: LanceMcCarthy/Action-AzureBlobUpload@v3.3.1
4744
with:
4845
connection_string: ${{ secrets.AZURE_CONNECTION_STRING }}
4946
container_name: cipp

.github/workflows/cipp_frontend_build.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- main
77
workflow_dispatch:
88

9-
permissions:
10-
contents: write
11-
129
jobs:
1310
build:
1411
if: github.event.repository.fork == false
@@ -18,11 +15,11 @@ jobs:
1815
steps:
1916
# Checkout the repository
2017
- name: Checkout Code
21-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4.2.2
2219

2320
# Set up Node.js
2421
- name: Set up Node.js
25-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4.2.0
2623
with:
2724
node-version: '20.18.1'
2825

@@ -43,11 +40,10 @@ jobs:
4340
4441
# Upload to Azure Blob Storage
4542
- name: Azure Blob Upload
46-
uses: LanceMcCarthy/Action-AzureBlobUpload@v3.3.0
43+
uses: LanceMcCarthy/Action-AzureBlobUpload@v3.3.1
4744
with:
4845
connection_string: ${{ secrets.AZURE_CONNECTION_STRING }}
4946
container_name: cipp
5047
source_folder: build/
5148
destination_folder: /
5249
delete_if_exists: true
53-

public/version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "7.2.2"
2+
"version": "7.2.3"
33
}

src/components/CippComponents/CippFormTenantSelector.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { CippFormComponent } from "./CippFormComponent";
33

44
export const CippFormTenantSelector = ({
55
formControl,
6+
componentType='autoComplete',
67
allTenants = false,
78
type = "multiple",
89
name = "tenantFilter",
@@ -23,7 +24,7 @@ export const CippFormTenantSelector = ({
2324

2425
return (
2526
<CippFormComponent
26-
type="autoComplete"
27+
type={componentType}
2728
name={name}
2829
formControl={formControl}
2930
placeholder="Select a tenant"

src/components/CippFormPages/CippFormPage.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const CippFormPage = (props) => {
134134
<Stack spacing={2} direction="row">
135135
{addedButtons && addedButtons}
136136
<Button
137-
disabled={postCall.isPending || !isValid || (!allowResubmit && !isDirty)}
137+
disabled={postCall.isPending || !isValid || (!allowResubmit && (!isDirty))}
138138
onClick={formControl.handleSubmit(handleSubmit)}
139139
type="submit"
140140
variant="contained"

src/components/CippTable/util-columnsFromAPI.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getCippFilterVariant } from "../../utils/get-cipp-filter-variant";
22
import { getCippFormatting } from "../../utils/get-cipp-formatting";
33
import { getCippTranslation } from "../../utils/get-cipp-translation";
44

5-
const skipRecursion = ["location"];
5+
const skipRecursion = ["location", "ScheduledBackupValues"];
66
// Function to merge keys from all objects in the array
77
const mergeKeys = (dataArray) => {
88
return dataArray.reduce((acc, item) => {

src/components/CippWizard/CIPPDeploymentStep.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ export const CippDeploymentStep = (props) => {
341341
placeholder="Enter the application secret. Leave blank to retain previous key."
342342
validators={{
343343
validate: (value) => {
344-
const secretRegex =
345-
/^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)[0-9a-zA-Z]{40}$/;
344+
const secretRegex = /^(?!^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)[A-Za-z0-9-_~.]{20,}$/;
346345
return (
347346
value === "" ||
348347
secretRegex.test(value) ||

0 commit comments

Comments
 (0)