Skip to content

Code scanning: only repo admins can now delete alerts #745

Closed
@hubwriter

Description

@hubwriter

What feature or product is affected?

Code scanning. Docs on "Dismissing or deleting alerts."

What is the new or expected behavior?

The behaviour has just been changed so that only repository admins can delete code scanning alerts. Other users who have write permission to the repo, and can therefore see the alerts summary list, won't see the Delete button:

image

How is the old or inaccurate behavior currently documented?

The documentation doesn't currently state that you have to be a repository admin to delete alerts. Non-admin users with write permission to the repo might wonder why they are not seeing the Delete button shown in the screenshot in step 4 of "Dismissing or deleting alerts."

This just requires a couple of additions to explain this prerequisite.

In the introductory paragraph of this section, change:

Alternatively, you can delete alerts.

to:

Alternatively, if you have admin permission for the repository, you can delete alerts.

In step 4 of the section, change:

If you want to delete alerts for this code scanning tool

to:

If you have admin permission for the repository, and you want to delete alerts for this code scanning tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamgood first issueGood for newcomerstriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions