Azure / Azure/PSRule.Rules.Azure

[BUG] Multiple `<env>.bicepparam` creates multiple issues for findings in `main.bicep`

Open
#2,882 2 comments 1 reaction 0 assignees View on GitHub
bug rule: app-service
Dominant language
PowerShell
Stars
447
Forks
109
Avg merge
2d 19h
Merged PRs (30d)
23

Description

### Existing rule

Azure.AppService.WebSecureFtp

### Description of the issue

This happens with multiple rules, but let's take `Azure.AppService.WebSecureFtp` as an example.

We have a `main.bicep` that creates a `br/public:avm/res/web/site:0.3.5` with `siteConfig: {}` that takes no parameters, so `bicepparam` should not affect this. In other works: All `siteConfig: {}` settings and values are defined inside `main.bicep`.

We then have multiple `.bicepparam`, let's say `test.bicepparam` and `prod.bicepparam`.

Events:

* PSRule code scanning with created one issue per `.bicepparam`.
* We add `siteConfig: {ftpsState: 'FtpsOnly'}` to `main.bicep` and trigger a new PSRule scan.
* Only the issue tied to `prod.bicepparam` gets closed.

### Error messages

None

### Reproduction

See description.

### Version of PSRule

2.9.0

### Version of PSRule for Azure

1.36.0

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.