Modify rule S6317: Fix missing diff view (#3032)
## Review A dedicated reviewer checked the rule description successfully for: - [ ] logical errors and incorrect information - [ ] information gaps and missing content - [ ] text style and tone - [ ] PR summary and labels follow [the guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
This commit is contained in:
parent
d707dfa2d2
commit
ba6e52e303
@ -6,7 +6,7 @@ In this example, the IAM policy allows an attacker to update the code of any Lam
|
||||
|
||||
==== Noncompliant code example
|
||||
|
||||
[source,terraform]
|
||||
[source,terraform,diff-id=1,diff-type=noncompliant]
|
||||
----
|
||||
resource "aws_iam_policy" "example" {
|
||||
name = "example"
|
||||
@ -32,7 +32,7 @@ EOF
|
||||
|
||||
The policy is narrowed such that only updates to the code of certain Lambda functions (without high privileges) are allowed.
|
||||
|
||||
[source,terraform]
|
||||
[source,terraform,diff-id=1,diff-type=compliant]
|
||||
----
|
||||
resource "aws_iam_policy" "example" {
|
||||
name = "example"
|
||||
|
Loading…
x
Reference in New Issue
Block a user