Do some sanity checking on license keys #402
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Set Community Label | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
contents: read | |
jobs: | |
set-community-label: | |
name: Set Community Label | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
disable-sudo: true | |
egress-policy: audit | |
- name: Check if organization member | |
id: is_organization_member | |
if: github.event.action == 'opened' | |
uses: jamessingleton/is-organization-member@fb5924a6287762ee5fc71bf9e95a60842af5528d # 1.0.1 | |
with: | |
organization: newrelic | |
username: ${{ github.event.issue.user.login }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set Community Label If Needed | |
if: ${{steps.is_organization_member.outputs.result == 'false'}} | |
uses: andymckay/labeler@3a4296e9dcdf9576b0456050db78cfd34853f260 # master | |
with: | |
add-labels: "community" | |