Skip to content

Commit

Permalink
Add compliance.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Apr 8, 2024
1 parent 4873046 commit 0ae22c9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/compliance.yml
@@ -0,0 +1,37 @@
name: Compliance

on:
pull_request:
push:
branches:
# Default branch
- "main"
# Release branches
## 1.2.x - eg. Semantic Versioning
- "[0-9]+.[0-9]+.x"
## v1 - eg. GitHub Actions Versioning
- "v[0-9]+"
# Scheduled workflow
schedule:
# Runs hourly
- cron: "0 * * * *"
# Manually Trigger workflow
workflow_dispatch:

# 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.
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.
pull-requests: write # permits an action to add a label to a pull request.

jobs:
automation:
uses: ghostwriter/compliance/.github/workflows/automation.yml@v1
secrets:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }}

0 comments on commit 0ae22c9

Please sign in to comment.