Skip to content

Commit

Permalink
feat: add minty configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bradegler committed Sep 27, 2024
1 parent 3cc63f4 commit 396855e
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/minty.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 'minty.abcxyz.dev/v2'

rule:
if: |-
assertion.iss == 'https://token.actions.githubusercontent.com' &&
assertion.repository_owner_id == '93787867' &&
assertion.repository_id == '493022865' &&
assertion.workflow_ref == assertion.job_workflow_ref &&
assertion.ref == 'refs/heads/main'
scope:
draft-release:
rule:
if: |-
assertion.workflow_ref.startsWith("abcxyz/pkg/.github/workflows/draft-release.yml") &&
assertion.event_name == 'workflow_dispatch'
repositories:
- 'pkg'
permissions:
contents: 'write'
pull_request: 'write'

release:
rule:
if: |-
assertion.job_workflow_ref == 'abcxyz/pkg/.github/workflows/release.yml' &&
assertion.event_name == 'push'
repositories:
- 'pkg'
permissions:
contents: 'write'

cleanup:
rule:
if: |-
assertion.job_workflow_ref == 'abcxyz/pkg/.github/workflows/cleanup.yml' &&
(assertion.event_name == 'workflow_dispatch' || assertion.event_name == 'schedule')
repositories:
- '*'
permissions:
contents: 'read'
actions: 'write'
workflows: 'write'

0 comments on commit 396855e

Please sign in to comment.