Skip to content

Commit

Permalink
{CI} Add non-security issue label check (#7818)
Browse files Browse the repository at this point in the history
* add non-security check

* adjust comment
  • Loading branch information
AllyW authored Jul 25, 2024
1 parent c215b00 commit a2fa89f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/template/non-security-comment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Hi, this inquiry has been well received albeit being triaged as non-security related ask.

Azure CLI is currently prioritizing direct SFI requirements and items and this request does not seem to be related to SFI. We'll retain it in our backlog at this point. Please reach out to [email protected] if you'd justify it's highly customer-impacted and need to be escalated.

Thank you,

Azure CLI team
25 changes: 25 additions & 0 deletions .github/workflows/AddIssueCommentWithLabel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Comment Issue when labeled non-security
on:
issues:
types: [opened, labeled, unlabeled]

jobs:
comment-non-security:
if: contains(github.event.issue.labels.*.name, 'non-security')
runs-on: ubuntu-20.04
permissions:
issues: write
name: Comment on issue
steps:
- name: Checkout comment message
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/template/non-security-comment.md
- name: Comment on issue with no security label
uses: mshick/add-pr-comment@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message-id: issueNoSecurityCommentBot
message-path: |
.github/template/non-security-comment.md

0 comments on commit a2fa89f

Please sign in to comment.