Skip to content

Commit

Permalink
feat: minty configuration file for this repository (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradegler authored Sep 25, 2024
1 parent 2da079b commit e490ec6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/minty.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 'minty.abcxyz.dev/v2'

rule:
if: |-
assertion.iss == 'https://token.actions.githubusercontent.com' &&
assertion.organization_id == '93787867' &&
assertion.repository_id == '560465650' &&
assertion.ref == 'refs/heads/main'
scope:
update-checksums:
rule:
if: |-
assertion.workflow_ref.startsWith("abcxyz/secure-setup-terraform/.github/workflows/update-checksums.yml") &&
(assertion.event_name == 'schedule' || assertion.event_name == 'workflow_dispatch')
repositories:
- 'secure-setup-terraform'
permissions:
pull_requests: 'write'
contents: 'write'

create-release:
rule:
if: |-
assertion.workflow_ref.startsWith("abcxyz/secure-setup-terraform/.github/workflows/create-release.yml") &&
assertion.event_name == 'push'
repositories:
- 'secure-setup-terraform'
permissions:
contents: 'write'

1 change: 1 addition & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
service_url: '${{ vars.TOKEN_MINTER_SERVICE_URL }}'
requested_permissions: |-
{
"scope": "create-release",
"repositories": ["${{ github.event.repository.name }}"],
"permissions": {
"contents": "write"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-checksums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
service_url: '${{ vars.TOKEN_MINTER_SERVICE_URL }}'
requested_permissions: |-
{
"scope": "update-checksums",
"repositories": ["secure-setup-terraform"],
"permissions": {
"pull_requests": "write",
Expand Down

0 comments on commit e490ec6

Please sign in to comment.