File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ end_of_line = lf
66insert_final_newline = true
77indent_style = space
88indent_size = 2
9- trim_trailing_whitespace = true
9+ trim_trailing_whitespace = true
Original file line number Diff line number Diff line change 1919 }
2020
2121 run-e2e-tests :
22- if : github.event.repository.name != 'terraform-azurerm-avm-template' && github.event. pull_request.head.repo.fork == false
22+ if : github.event.pull_request.head.repo.fork == false
2323 uses : Azure/terraform-azurerm-avm-template/.github/workflows/test-examples-template.yml@main
2424 name : end to end
2525 secrets : inherit
Original file line number Diff line number Diff line change 2121 runs-on : ubuntu-latest
2222 steps :
2323 - name : checkout repository
24- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525
2626 - name : check docs
2727 uses : Azure/terraform-azurerm-avm-template/.github/actions/docs-check@main
3232 runs-on : ubuntu-latest
3333 steps :
3434 - name : checkout repository
35- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
35+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636
3737 - name : lint terraform
3838 uses : Azure/terraform-azurerm-avm-template/.github/actions/linting@main
4545 runs-on : ubuntu-latest
4646 steps :
4747 - name : checkout repository
48- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
48+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949
5050 - name : avmfix
5151 uses : Azure/terraform-azurerm-avm-template/.github/actions/avmfix@main
Original file line number Diff line number Diff line change 1616 if : github.event.repository.name != 'terraform-azurerm-avm-template'
1717 runs-on : ubuntu-latest
1818 steps :
19- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020 - name : Check version
2121 uses : Azure/terraform-azurerm-avm-template/.github/actions/version-check@main
2222 with :
Original file line number Diff line number Diff line change @@ -46,3 +46,4 @@ avm.tflint_example.merged.hcl
4646avmmakefile
4747avm.tflint_module.hcl
4848avm.tflint_module.merged.hcl
49+ examples /* /policy
Original file line number Diff line number Diff line change 1+ # Contributing
2+
3+ This project welcomes contributions and suggestions. Most contributions require you to
4+ agree to a Contributor License Agreement (CLA) declaring that you have the right to,
5+ and actually do, grant us the rights to use your contribution. For details, visit
6+ https://cla.microsoft.com .
7+
8+ When you submit a pull request, a CLA-bot will automatically determine whether you need
9+ to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
10+ instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
11+
12+ This project has adopted the [ Microsoft Open Source Code of Conduct] ( https://opensource.microsoft.com/codeofconduct/ ) .
13+ For more information see the [ Code of Conduct FAQ] ( https://opensource.microsoft.com/codeofconduct/faq/ )
14+ or contact [ opencode@microsoft.com ] ( mailto:opencode@microsoft.com ) with any additional questions or comments.
Original file line number Diff line number Diff line change @@ -18,16 +18,15 @@ if [ -z "$1" ]; then
1818 exit 1
1919fi
2020
21- # Mount .azure directory if it exists
22- AZURE_VOLUME=" "
23- if [ -d " $HOME /.azure" ]; then
24- AZURE_VOLUME=" -v $HOME /.azure:/home/runtimeuser/.azure"
21+ # Check if AZURE_CONFIG_DIR is set, if not, set it to ~/.azure
22+ if [ -z " $AZURE_CONFIG_DIR " ]; then
23+ AZURE_CONFIG_DIR=" $HOME /.azure"
2524fi
2625
2726# Check if we are running in a container
2827# If we are then just run make directly
2928if [ -z " $AVM_IN_CONTAINER " ]; then
30- $CONTAINER_RUNTIME run --pull always --user " $( id -u) :$( id -g) " --rm $AZURE_VOLUME -v " $( pwd) " :/src -w /src -e GITHUB_REPOSITORY -e ARM_SUBSCRIPTION_ID -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make " $1 "
29+ $CONTAINER_RUNTIME run --pull always --user " $( id -u) :$( id -g) " --rm -v " $( pwd) " :/src -w /src -v $AZURE_CONFIG_DIR :/azureconfig -e AZURE_CONFIG_DIR=/azureconfig -e GITHUB_TOKEN -e GITHUB_REPOSITORY -e ARM_SUBSCRIPTION_ID -e ARM_TENANT_ID -e ARM_CLIENT_ID -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make " $1 "
3130else
3231 make " $1 "
3332fi
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ IF "%~1"=="" (
1818)
1919
2020REM Run the make target with CONTAINER_RUNTIME
21- %CONTAINER_RUNTIME% run --pull always --rm -v " %cd% " :/src -w /src --user " 1000:1000" -e ARM_SUBSCRIPTION_ID -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make %1
21+ %CONTAINER_RUNTIME% run --pull always --rm -v " %cd% " :/src -w /src --user " 1000:1000" -e GITHUB_TOKEN -e ARM_SUBSCRIPTION_ID -e ARM_TENANT_ID -e ARM_CLIENT_ID -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make %1
2222
2323ENDLOCAL
You can’t perform that action at this time.
0 commit comments