generated from ghostwriter/wip
-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1.19 KB
/
compliance.yml
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
26
27
28
29
30
31
32
# .github/workflows/compliance.yml
name: Compliance
on:
pull_request:
push:
branches:
- "main"
- "[0-9]+.[0-9]+.x" # 1.2.x
- "v[0-9]+" # v1
schedule:
- cron: "0 * * * *" # Runs hourly
workflow_dispatch: # Manually Trigger workflow
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: write # permits an action to cancel a workflow run.
checks: write # permits an action to create a check run.
contents: write # allows the action to create a release.
discussions: write # permits an action to close or delete a discussion.
pull-requests: write # permits an action to add a label to a pull request.
issues: write # permits an action to add a comment to an issue
packages: write # permits an action to upload and publish packages on GitHub Packages.
pages: write # permits an action to request a GitHub Pages build.
jobs:
automation:
uses: ghostwriter/compliance/.github/workflows/automation.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }}