Skip to content

Disable commentOps on merged PRs ⚠️ #1666

@raouf-xh

Description

@raouf-xh

We noticed that Digger backend can still get triggered using commentOps on old merged PRs.

If the merged PRs feature branches are deleted, the backend is not able to read digger.yml (that's fine)

However, when restoring the branch, we can trigger the backend with digger plan or digger apply and it will run successfully, the output will then show that resources will be destroyed which is expected since the old branch doesn't have the latest resources in the main branch. Moreover, digger apply can be run without any restrictions.

This is bad and a serious issue as it can result in the destruction of existing infrastructure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions