Skip to content

Commit

Permalink
Merge branch 'hashicorp:main' into update-windows-hotpatch-images
Browse files Browse the repository at this point in the history
  • Loading branch information
SourceQuality authored Dec 20, 2023
2 parents 3b6ca3c + 4b0e487 commit 585f673
Show file tree
Hide file tree
Showing 11,926 changed files with 217,448 additions and 184,543 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 16 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
schema_version = 1

project {
license = "MPL-2.0"
copyright_year = 2023

header_ignore = [
".ci/**",
".github/**",
".teamcity/**",
".release/**",
"vendor/**",
"internal/**/**_gen.go", # Pandora generated files
".goreleaser.yml",
]
}
18 changes: 9 additions & 9 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ service/automation:
service/azure-stack-hci:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_stack_hci_cluster((.|\n)*)###'

service/azuremanagedlustrefilesystem:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_managed_lustre_file_system((.|\n)*)###'

service/batch:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_batch_((.|\n)*)###'

Expand Down Expand Up @@ -114,6 +111,9 @@ service/databricks:
service/datadog:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_datadog_monitor((.|\n)*)###'

service/dev-center:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_dev_center((.|\n)*)###'

service/devtestlabs:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_dev_test_((.|\n)*)###'

Expand All @@ -132,6 +132,9 @@ service/domain-services:
service/elastic:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_elastic_cloud_elasticsearch((.|\n)*)###'

service/elasticsan:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_elastic_san((.|\n)*)###'

service/event-grid:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_eventgrid_((.|\n)*)###'

Expand All @@ -156,9 +159,6 @@ service/hdinsight:
service/healthcare:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_healthcare_((.|\n)*)###'

service/hpc-cache:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_hpc_cache((.|\n)*)###'

service/hsm:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_dedicated_hardware_security_module((.|\n)*)###'

Expand Down Expand Up @@ -247,7 +247,7 @@ service/network:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(application_gateway\W+|application_security_group\W+|bastion_host|custom_ip_prefix|express_route_|ip_group|local_network_gateway|nat_gateway|network_connection_monitor\W+|network_ddos_protection_plan\W+|network_interface\W+|network_interface_application_gateway_backend_address_pool_association\W+|network_interface_application_security_group_association\W+|network_interface_backend_address_pool_association\W+|network_interface_nat_rule_association\W+|network_interface_security_group_association\W+|network_manager\W+|network_manager_admin_rule\W+|network_manager_admin_rule_collection\W+|network_manager_connectivity_configuration\W+|network_manager_deployment\W+|network_manager_management_group_connection\W+|network_manager_network_group\W+|network_manager_network_group\W+|network_manager_scope_connection\W+|network_manager_security_admin_configuration\W+|network_manager_static_member\W+|network_manager_subscription_connection\W+|network_packet_capture\W+|network_profile\W+|network_security_group\W+|network_security_rule\W+|network_service_tags\W+|network_watcher\W+|network_watcher_flow_log\W+|point_to_site_vpn_gateway|private_endpoint\W+|private_endpoint_application_security_group_association\W+|private_endpoint_connection\W+|private_link_service\W+|private_link_service_endpoint_connections\W+|public_ip|route|subnet|virtual_hub\W+|virtual_hub_bgp_connection\W+|virtual_hub_connection\W+|virtual_hub_ip\W+|virtual_hub_route_table\W+|virtual_hub_route_table_route\W+|virtual_hub_routing_intent\W+|virtual_hub_security_partner_provider\W+|virtual_machine_packet_capture\W+|virtual_machine_scale_set_packet_capture\W+|virtual_network\W+|virtual_network_dns_servers\W+|virtual_network_gateway\W+|virtual_network_gateway_connection\W+|virtual_network_gateway_nat_rule\W+|virtual_network_peering\W+|virtual_wan\W+|vpn_|web_application_firewall_policy)((.|\n)*)###'

service/network-function:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_network_function_azure_traffic_collector((.|\n)*)###'
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_network_function_((.|\n)*)###'

service/nginx:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_nginx_((.|\n)*)###'
Expand Down Expand Up @@ -322,7 +322,7 @@ service/sql:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_sql_((.|\n)*)###'

service/storage:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(storage_account\W+|storage_account_blob_container_sas\W+|storage_account_customer_managed_key\W+|storage_account_local_user\W+|storage_account_network_rules\W+|storage_account_sas\W+|storage_blob\W+|storage_blob_inventory_policy\W+|storage_container\W+|storage_data_lake_gen2_filesystem\W+|storage_data_lake_gen2_path\W+|storage_encryption_scope\W+|storage_management_policy\W+|storage_object_replication\W+|storage_queue\W+|storage_share\W+|storage_share_directory\W+|storage_share_file\W+|storage_sync\W+|storage_sync_cloud_endpoint\W+|storage_sync_group\W+|storage_table\W+|storage_table_entity\W+)((.|\n)*)###'
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(storage_account\W+|storage_account_blob_container_sas\W+|storage_account_customer_managed_key\W+|storage_account_local_user\W+|storage_account_network_rules\W+|storage_account_sas\W+|storage_blob\W+|storage_blob_inventory_policy\W+|storage_container\W+|storage_containers\W+|storage_data_lake_gen2_filesystem\W+|storage_data_lake_gen2_path\W+|storage_encryption_scope\W+|storage_management_policy\W+|storage_object_replication\W+|storage_queue\W+|storage_share\W+|storage_share_directory\W+|storage_share_file\W+|storage_sync\W+|storage_sync_cloud_endpoint\W+|storage_sync_group\W+|storage_table\W+|storage_table_entity\W+)((.|\n)*)###'

service/storagemover:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_storage_mover((.|\n)*)###'
Expand All @@ -331,7 +331,7 @@ service/stream-analytics:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_stream_analytics_((.|\n)*)###'

service/subscription:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(extended_locations|subscription\W+|subscriptions)((.|\n)*)###'
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(extended_locations|location|subscription\W+|subscriptions)((.|\n)*)###'

service/synapse:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_synapse_((.|\n)*)###'
Expand Down
12 changes: 6 additions & 6 deletions .github/labeler-pull-request-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ service/automation:
service/azure-stack-hci:
- internal/services/azurestackhci/**/*

service/azuremanagedlustrefilesystem:
- internal/services/azuremanagedlustrefilesystem/**/*

service/batch:
- internal/services/batch/**/*

Expand Down Expand Up @@ -115,6 +112,9 @@ service/databricks:
service/datadog:
- internal/services/datadog/**/*

service/dev-center:
- internal/services/devcenter/**/*

service/devtestlabs:
- internal/services/devtestlabs/**/*

Expand All @@ -134,6 +134,9 @@ service/domain-services:
service/elastic:
- internal/services/elastic/**/*

service/elasticsan:
- internal/services/elasticsan/**/*

service/event-grid:
- internal/services/eventgrid/**/*

Expand All @@ -158,9 +161,6 @@ service/hdinsight:
service/healthcare:
- internal/services/healthcare/**/*

service/hpc-cache:
- internal/services/hpccache/**/*

service/hsm:
- internal/services/hsm/**/*

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-waiting-response-on-fail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
echo "ghowner=$(cat artifact/ghowner.txt)" >>${GITHUB_OUTPUT}
echo "prnumber=$(cat artifact/prnumber.txt)" >>${GITHUB_OUTPUT}
- name: Add waiting-response on fail
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
github.rest.issues.addLabels({
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/automation-open-pull-request-go-sdk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Open Pull Request when an `auto-pr` is pushed for go-azure-sdk

on:
push:
branches:
- 'auto-deps-pr/updating-go-azure-sdk-to-**'

jobs:
open-pull-request:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: "open a pull request"
id: open-pr
run: |
version="$(echo $GH_REF | sed "s/auto-deps-pr\/updating-go-azure-sdk-to-//")"
title="dependencies: updating \`hashicorp/go-azure-sdk\` to \`${version}\`"
body="This PR updates \`hashicorp/go-azure-sdk\` to \`${version}\` - further details can be found in a comment."
# this runs everytime the PR gets pushed too, whilst you can only create a PR a single time
# so we should be smarter, but piping this to /dev/null is a fine workaround for MVP
gh pr create --title "$title" --body "$body" -B "$PR_TARGET" > /dev/null
env:
PR_TARGET: "main"
GH_TOKEN: ${{ secrets.SERVICE_ACCOUNT_TERRAFORM_TOKEN }}
GH_REF: ${{ github.ref_name }}
29 changes: 29 additions & 0 deletions .github/workflows/automation-open-pull-request-pandora.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Open Pull Request when an `auto-pr` is pushed for Pandora

on:
push:
branches:
- 'auto-pr/**' # deprecated
- 'auto-pandora-pr/**'

jobs:
open-pull-request:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: "open a pull request"
id: open-pr
run: |
# this runs everytime the PR gets pushed too, whilst you can only create a PR a single time
# so we should be smarter, but piping this to /dev/null is a fine workaround for MVP
gh pr create --title "$PR_TITLE" --body "$PR_BODY" -B "$PR_TARGET" > /dev/null
env:
PR_TITLE: "Auto PR: Regenerating based on (${{ github.sha }})"
PR_BODY: "Regenerating the Terraform Provider based on the latest changes"
PR_TARGET: "main"
GH_TOKEN: ${{ secrets.SERVICE_ACCOUNT_TERRAFORM_TOKEN }}
28 changes: 0 additions & 28 deletions .github/workflows/automation-open-pull-request.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/breaking-change-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ concurrency:

jobs:
detect:
runs-on: ubuntu-latest
runs-on: [custom, linux, small]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./.go-version
- run: bash ./scripts/run-breaking-change-detection.sh
26 changes: 26 additions & 0 deletions .github/workflows/comment-failure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Comment Failure

on:
# This file is reused, and called from other workflows
workflow_call:

jobs:
comment-failure:
runs-on: ubuntu-latest
steps:
- name: Get run url
if: failure()
run: |
echo "gha_url=https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" >> $GITHUB_ENV
- name: Send build failure comment
if: failure()
uses: actions/github-script@v6
with:
result-encoding: string
script: |
github.rest.issues.createComment({
issue_number: ${{ github.event.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: '<b>Build failure</b> \n\n This pull request contains a build failure which needs addressed [here](${{ env.gha_url}}) .'
})
2 changes: 1 addition & 1 deletion .github/workflows/comment-stale-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
comment-stale-prs:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
stale-pr-message: |
This PR is being labeled as "stale" because it has not been updated for 30 or more days.
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/depscheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ jobs:
depscheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./.go-version
- run: bash scripts/gogetcookie.sh
- run: make depscheck
save-artifacts-on-fail:
if: ${{ needs.depscheck.result }} == 'failure'
uses: ./.github/workflows/save-artifacts.yaml
comment-on-fail:
if: ${{ needs.depscheck.result }} == 'failure'
uses: ./.github/workflows/comment-failure.yaml
31 changes: 31 additions & 0 deletions .github/workflows/document-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Resource Document Linting

permissions:
contents: read
pull-requests: read

on:
pull_request:
types: ["opened", "synchronize"]
paths:
- ".github/workflows/document-lint.yaml"
- "internal/services/**"
- "website/**"
branches: ["main"]

jobs:
document-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./.go-version
- run: bash scripts/gogetcookie.sh
- run: make document-lint
continue-on-error: true
- name: check lint result
if: failure()
run: |
echo "::warning::Document linting failed. Please fix the issues."
7 changes: 5 additions & 2 deletions .github/workflows/gencheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ jobs:
gencheck:
runs-on: [custom, linux, large]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./.go-version
- run: bash scripts/gogetcookie.sh
- run: make gencheck
save-artifacts-on-fail:
if: ${{ needs.gencheck.result }} == 'failure'
uses: ./.github/workflows/save-artifacts.yaml
comment-on-fail:
if: ${{ needs.depscheck.result }} == 'failure'
uses: ./.github/workflows/comment-failure.yaml
7 changes: 5 additions & 2 deletions .github/workflows/golint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
golint:
runs-on: [custom, linux, large]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./.go-version
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
Expand All @@ -31,3 +31,6 @@ jobs:
save-artifacts-on-fail:
if: ${{ needs.golint.result }} == 'failure'
uses: ./.github/workflows/save-artifacts.yaml
comment-on-fail:
if: ${{ needs.depscheck.result }} == 'failure'
uses: ./.github/workflows/comment-failure.yaml
9 changes: 6 additions & 3 deletions .github/workflows/gradually-deprecated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./.go-version
- run: bash ./scripts/run-gradually-deprecated.sh
save-artifacts-on-fail:
if: ${{ needs.test.result }} == 'failure'
uses: ./.github/workflows/save-artifacts.yaml
uses: ./.github/workflows/save-artifacts.yaml
comment-on-fail:
if: ${{ needs.depscheck.result }} == 'failure'
uses: ./.github/workflows/comment-failure.yaml
2 changes: 1 addition & 1 deletion .github/workflows/increment-milestone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
increment-milestone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: "Increment Milestone"
Expand Down
Loading

0 comments on commit 585f673

Please sign in to comment.