Skip to content

Commit be78e9f

Browse files
authored
Merge branch 'KelvinTegelaar:master' into master
2 parents de6e609 + 3fbe8b3 commit be78e9f

670 files changed

Lines changed: 37190 additions & 254633 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/dev_api.yml

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,42 @@
1-
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
2-
# More GitHub Actions for Azure: https://github.com/Azure/actions
3-
4-
name: dev_api
5-
6-
on:
7-
push:
8-
branches:
9-
- dev
10-
workflow_dispatch:
11-
12-
env:
13-
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
14-
15-
jobs:
16-
deploy:
17-
if: github.event.repository.fork == false && github.event_name == 'push'
18-
runs-on: windows-latest
19-
20-
steps:
21-
- name: 'Checkout GitHub Action'
22-
uses: actions/checkout@v4
23-
24-
- name: 'Run Azure Functions Action'
25-
uses: Azure/functions-action@v1
26-
id: fa
27-
with:
28-
app-name: 'cippjta72'
29-
slot-name: 'Production'
30-
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
31-
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_5B44448119C645C099EE192346D7433A }}
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: dev_api
5+
6+
on:
7+
push:
8+
branches:
9+
- dev
10+
workflow_dispatch:
11+
12+
env:
13+
AZURE_FUNCTIONAPP_PACKAGE_PATH: "." # set this to the path to your web app project, defaults to the repository root
14+
15+
jobs:
16+
deploy:
17+
permissions:
18+
id-token: write #This is required for requesting the JWT
19+
contents: read #This is required for actions/checkout
20+
if: github.event.repository.fork == false && github.event_name == 'push'
21+
runs-on: windows-latest
22+
23+
steps:
24+
- name: "Checkout GitHub Action"
25+
uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
28+
29+
- name: Login to Azure
30+
uses: azure/login@v2
31+
with:
32+
client-id: ${{ secrets.DEV_CLIENTID }}
33+
tenant-id: ${{ secrets.DEV_TENANTID }}
34+
subscription-id: ${{ secrets.DEV_SUBSCRIPTIONID }}
35+
36+
- name: "Run Azure Functions Action"
37+
uses: Azure/functions-action@v1
38+
id: fa
39+
with:
40+
app-name: "cippjta72"
41+
slot-name: "Production"
42+
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}

.github/workflows/dev_api_proc.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/dev_cippahmcc.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/dev_cippmpiii.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/dev_clouduptest.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/publish_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
steps:
1818
# Checkout the repository
1919
- name: Checkout Code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123

2224
# Read and Trim Version
2325
- name: Read and Trim Version
@@ -91,4 +93,4 @@ jobs:
9193
container_name: cipp-api
9294
source_folder: src/releases/
9395
destination_folder: /
94-
delete_if_exists: true
96+
delete_if_exists: true

.github/workflows/upload_dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
steps:
1515
# Checkout the repository
1616
- name: Checkout Code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
1820

1921
# Create ZIP File in a New Source Directory
2022
- name: Prepare and Zip Release Files

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Logs
99
ExcludedTenants
1010
SendNotifications/config.json
1111
.env
12-
12+
Output/
1313

1414
# Cursor IDE
1515
.cursor/rules

CIPPHttpTrigger/function.json

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,21 @@
77
"type": "httpTrigger",
88
"direction": "in",
99
"name": "Request",
10-
"methods": ["get", "post"],
11-
"route": "{CIPPEndpoint}"
10+
"methods": [
11+
"get",
12+
"post",
13+
"patch",
14+
"put",
15+
"delete",
16+
"options"
17+
],
18+
"route": "{*CIPPEndpoint}"
1219
},
1320
{
1421
"type": "http",
1522
"direction": "out",
1623
"name": "Response"
1724
},
18-
{
19-
"type": "queue",
20-
"direction": "out",
21-
"name": "QueueItem",
22-
"queueName": "CIPPGenericQueue"
23-
},
24-
{
25-
"type": "queue",
26-
"direction": "out",
27-
"name": "Subscription",
28-
"queueName": "AlertSubscriptions"
29-
},
30-
{
31-
"type": "queue",
32-
"direction": "out",
33-
"name": "gradientqueue",
34-
"queueName": "billqueue"
35-
},
36-
{
37-
"type": "queue",
38-
"direction": "out",
39-
"name": "alertqueue",
40-
"queueName": "alertqueue"
41-
},
42-
{
43-
"type": "queue",
44-
"direction": "out",
45-
"name": "incidentqueue",
46-
"queueName": "incidentqueue"
47-
},
48-
{
49-
"type": "queue",
50-
"direction": "out",
51-
"name": "offboardingmailbox",
52-
"queueName": "offboardingmailbox"
53-
},
5425
{
5526
"name": "starter",
5627
"type": "durableClient",

CIPPTimers.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"Id": "4d80205c-674d-4fc1-abeb-a1ec37e0d796",
8585
"Command": "Start-DriftStandardsOrchestrator",
8686
"Description": "Orchestrator to process drift standards",
87-
"Cron": "0 0 */1 * * *",
87+
"Cron": "0 0 */12 * * *",
8888
"Priority": 5,
8989
"RunOnProcessor": true,
9090
"PreferredProcessor": "standards"
@@ -213,5 +213,14 @@
213213
"Priority": 20,
214214
"RunOnProcessor": true,
215215
"IsSystem": true
216+
},
217+
{
218+
"Id": "b8f3c2e1-5d4a-4f7b-9a2c-1e6d8f3b5a7c",
219+
"Command": "Start-BackupRetentionCleanup",
220+
"Description": "Timer to cleanup old backups based on retention policy",
221+
"Cron": "0 0 2 * * *",
222+
"Priority": 21,
223+
"RunOnProcessor": true,
224+
"IsSystem": true
216225
}
217226
]

0 commit comments

Comments
 (0)