File: AddIssueCommentWithLabel.yml

package info (click to toggle)
azure-cli 2.82.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,359,416 kB
  • sloc: python: 1,910,381; sh: 1,343; makefile: 406; cs: 145; javascript: 74; sql: 37; xml: 21
file content (25 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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-latest
    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