department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

[Offboarding] Feedback for Slack 'user removal request' when GHA does not run correctly #31187

Open mchelen-gov opened 3 years ago

mchelen-gov commented 3 years ago

Description

Users can notify Slack admins about account deactivation requests by commenting /request Firstname Lastname on offboarding tickets. There may have been some cases where the GHA did not run correctly, but there is no information included on the Github issue to know whether the action ran successfully or not.

This action only runs if the person who runs /request has 'write' permissions on the repository. If they do not, nothing will happen. What would need to happen here is to add a job in the action which checks the user's permissions previous to running the https://github.com/xt0rted/slash-command-action action and notifies the user that nothing will be done with their request.

TL;DR There are certain groups of people that do not receive a confirmation when they initiate an offboarding request.

Background/context

Technical notes


Tasks

Acceptance Criteria


Reminders

rmtolmach commented 2 years ago

Another time I've seen the action not run is when the /request command is surrounded with backticks so it looks like this: /request John Smith. I can tell it doesn't run because the :eyes: don't appear as a reaction.

mchelen-gov commented 2 years ago

Another time I've seen the action not run is when the /request command is surrounded with backticks so it looks like this: /request John Smith. I can tell it doesn't run because the :eyes: don't appear as a reaction.

Interesting, this feedback should probably be done as a comment for clarity sake.

oseasmoran73 commented 2 years ago

Here is an example of an action that failed due to one of previously linked off-board action

One thing that was discussed is potentially adding a notification if action failed as extra guard rails

rmtolmach commented 2 years ago

(Jeremy found this) A slack alert on failure can be done with something like this: https://github.com/department-of-veterans-affairs/devops/blob/master/.github/workflows/packer-build-eks.yml#L99-L107

rmtolmach commented 2 years ago

I haven't worked with GitHub Actions much yet, so I'd like to claim this ticket :hand:. Leaving in backlog until prioritized by leads/management.

oseasmoran73 commented 2 years ago

Move towards ready to do column as I suspect it is a low hanging fruit that can be picked up when on-call