github.com/crowdsecurity/crowdsec@v1.6.1/.github/workflows/governance-bot.yaml (about)

     1  # .github/workflow/governance.yml
     2  
     3  on:
     4    pull_request_target:
     5      types: [ synchronize, opened, labeled, unlabeled ]
     6    issues:
     7      types: [ opened, labeled, unlabeled ]
     8    issue_comment:
     9      types: [ created ]
    10  
    11  # You can use permissions to modify the default permissions granted to the GITHUB_TOKEN, 
    12  # adding or removing access as required, so that you only allow the minimum required access. 
    13  permissions:
    14    contents: read
    15    issues: write
    16    pull-requests: write
    17    statuses: write
    18    checks: write
    19  
    20  jobs:
    21    governance:
    22      name: Governance
    23      runs-on: ubuntu-latest
    24      steps:
    25        # Semantic versioning, lock to different version: v2, v2.0 or a commit hash.
    26        - uses: BirthdayResearch/oss-governance-bot@v4
    27          with:
    28            # You can use a PAT to post a comment/label/status so that it shows up as a user instead of github-actions
    29            github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}'
    30            config-path: .github/governance.yml # optional, default to '.github/governance.yml'