Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redact the (fake) AWS access key id in an Azure example that blocks G…
…H pushes (#3167) The Azure spec example [CreateUpdateAwsCredConnectorSubscription](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/CreateUpdateAwsCredConnectorSubscription_example.json#L23) contains a probably fake, but real looking AWS Access Key id. It hasn't been modified in years, but it seems GitHub expanded their secrets scanning, because now our schema.json containing this example is refused: ``` remote: - GITHUB PUSH PROTECTION remote: —————————————————————————————————————————————————————— remote: Resolve the following secrets before pushing again. remote: remote: (?) Learn how to resolve a blocked push remote: https://docs.github.com/code-security/secret-scanning/pushing-a-branch-blocked-by-push-protection remote: remote: remote: —— Amazon AWS Access Key ID —————————————————————————— remote: locations: remote: - commit: f1b05bccccfa232413de3e74d1c34c189e536117 remote: path: provider/cmd/pulumi-resource-azure-native/schema.json:652276 remote: - commit: f1b05bccccfa232413de3e74d1c34c189e536117 remote: path: provider/cmd/pulumi-resource-azure-native/schema.json:652276 remote: - commit: f1b05bccccfa232413de3e74d1c34c189e536117 remote: path: provider/cmd/pulumi-resource-azure-native/schema.json:652276 remote: - commit: f1b05bccccfa232413de3e74d1c34c189e536117 remote: path: provider/cmd/pulumi-resource-azure-native/schema.json:652276 remote: - commit: f1b05bccccfa232413de3e74d1c34c189e536117 remote: path: provider/cmd/pulumi-resource-azure-native/schema.json:652276 ``` This blocks both developer PRs and automated upgrades. I first thought of excluding the offending API version, but it's the only one containing this resource. Instead, this PR redacts the key id from the example before we process it further. That way, we keep both the resource and the example. I've also filed an [upstream issue](Azure/azure-rest-api-specs#28404). Fixes #3164 Fixes #3166
- Loading branch information