forked from microsoft/PowerShell-DSC-for-Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.08 KB
/
manage-azure-policy-870961a3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: manage-azure-policy-870961a3
on:
workflow_dispatch:
inputs:
remarks:
description: 'Reason for triggering the workflow run'
required: false
default: 'Updating Azure Policies'
## Uncomment the following if you wish to automatically trigger workflow run with every commit
#
# push:
# paths:
# - 'policy_def/policies/_Deploy_Windows_machines_should_meet_requirements_of_the_Azure_Security_Center_baseline_368a4ee3-d478-4b83-814e-a4421be3184c/**'
# - .github/workflows/manage-azure-policy-870961a3.yml
jobs:
apply-azure-policy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS_870961a3}}
allow-no-subscriptions: true
- name: Create or Update Azure Policies
uses: azure/manage-azure-policy@v0
with:
paths: |
policy_def/policies/_Deploy_Windows_machines_should_meet_requirements_of_the_Azure_Security_Center_baseline_368a4ee3-d478-4b83-814e-a4421be3184c/**