Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Pattern modules for policy exemptions #3458

Merged
merged 34 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c12a502
Initial ptn modules for policy exemptions
oZakari Oct 8, 2024
7e9184c
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Oct 10, 2024
2363f4d
Initial test files
oZakari Oct 10, 2024
63f4b98
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Oct 15, 2024
af7a955
Fix issues with tests
oZakari Oct 15, 2024
ee27eaa
Added applicable tests
oZakari Oct 16, 2024
fac0f3c
Revert to older api version for policy assignments
oZakari Oct 16, 2024
fcff334
Fix serviceshort names
oZakari Oct 16, 2024
23c7681
Add dash for codeowners
oZakari Oct 16, 2024
59b38eb
Merge branch 'main' into avm-authorization-policyexemptions
oZakari Oct 24, 2024
87ccf92
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Oct 25, 2024
cc7b961
Merge branch 'main' into avm-authorization-policyexemptions
oZakari Nov 4, 2024
a7af732
Merge branch 'avm-authorization-policyexemptions' of https://github.c…
oZakari Nov 8, 2024
f1ca9ad
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Nov 8, 2024
6c08b1a
sync main.json
oZakari Nov 8, 2024
4d5d14a
Merge branch 'main' into avm-authorization-policyexemptions
oZakari Nov 15, 2024
1ba3ee8
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Nov 18, 2024
041be66
Merge branch 'avm-authorization-policyexemptions' of https://github.c…
oZakari Nov 18, 2024
e897e8a
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Nov 26, 2024
5d3da77
Merge branch 'main' into avm-authorization-policyexemptions
oZakari Nov 27, 2024
c97e253
Merge branch 'avm-authorization-policyexemptions' of https://github.c…
oZakari Dec 4, 2024
2d9d9cb
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Dec 4, 2024
4b9359b
Fix team name
oZakari Dec 12, 2024
09a0886
Update tests to add metadata for policy assignment
oZakari Dec 12, 2024
e868b61
Update readme
oZakari Dec 12, 2024
cae0edc
Update readme
oZakari Dec 12, 2024
15e0e9f
Update readme
oZakari Dec 12, 2024
58477dd
Merge branch 'main' of https://github.com/Azure/bicep-registry-module…
oZakari Dec 12, 2024
5b8494a
Update issue template
oZakari Dec 12, 2024
7ea0ecf
Fix ordering
oZakari Dec 12, 2024
6247253
Remvoe expires property
oZakari Dec 13, 2024
9bc3151
update json
oZakari Dec 13, 2024
6bbf552
Fix lint error
oZakari Dec 18, 2024
ecea33b
Merge branch 'main' into avm-authorization-policyexemptions
oZakari Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
oZakari marked this conversation as resolved.
Show resolved Hide resolved
oZakari marked this conversation as resolved.
Show resolved Hide resolved
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/avm/ptn/aca-lza/hosting-environment/ @Azure/avm-ptn-acalza-hostingenvironment-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/ptn/ai-platform/baseline/ @Azure/avm-ptn-aiplatform-baseline-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/ptn/authorization/policy-assignment/ @Azure/avm-ptn-authorization-policyassignment-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/ptn/authorization/policy-exemption/ @Azure/avm-ptn-authorization-policy-exemption-module-owners-bicep @Azure/avm-module-reviewers-bicep
oZakari marked this conversation as resolved.
Show resolved Hide resolved
/avm/ptn/authorization/resource-role-assignment/ @Azure/avm-ptn-authorization-resourceroleassignment-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/ptn/authorization/role-assignment/ @Azure/avm-ptn-authorization-roleassignment-module-owners-bicep @Azure/avm-module-reviewers-bicep
#/avm/ptn/avd-lza/insights/ @Azure/avm-ptn-avd-lza-insights-module-owners-bicep @Azure/avm-module-reviewers-bicep
Expand Down
88 changes: 88 additions & 0 deletions .github/workflows/avm.ptn.authorization.policy-exemption.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: "avm.ptn.authorization.policy-exemption"

on:
workflow_dispatch:
inputs:
staticValidation:
type: boolean
description: "Execute static validation"
required: false
default: true
deploymentValidation:
type: boolean
description: "Execute deployment validation"
required: false
default: true
removeDeployment:
type: boolean
description: "Remove deployed module"
required: false
default: true
customLocation:
type: string
description: "Default location overwrite (e.g., eastus)"
required: false
push:
branches:
- main
paths:
- ".github/actions/templates/avm-**"
- ".github/workflows/avm.template.module.yml"
- ".github/workflows/avm.ptn.authorization.policy-exemption.yml"
- "avm/ptn/authorization/policy-exemption/**"
- "avm/utilities/pipelines/**"
- "!avm/utilities/pipelines/platform/**"
- "!*/**/README.md"

env:
modulePath: "avm/ptn/authorization/policy-exemption"
workflowPath: ".github/workflows/avm.ptn.authorization.policy-exemption.yml"

concurrency:
group: ${{ github.workflow }}

jobs:
###########################
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-latest
name: "Initialize pipeline"
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Set input parameters to output variables"
id: get-workflow-param
uses: ./.github/actions/templates/avm-getWorkflowInput
with:
workflowPath: "${{ env.workflowPath}}"
- name: "Get module test file paths"
id: get-module-test-file-paths
uses: ./.github/actions/templates/avm-getModuleTestFiles
with:
modulePath: "${{ env.modulePath }}"
outputs:
workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }}
moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }}
psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }}
modulePath: "${{ env.modulePath }}"

##############################
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Run"
permissions:
id-token: write # For OIDC
contents: write # For release tags
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
with:
workflowInput: "${{ needs.job_initialize_pipeline.outputs.workflowInput }}"
moduleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}"
psRuleModuleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}"
modulePath: "${{ needs.job_initialize_pipeline.outputs.modulePath}}"
secrets: inherit
Loading