-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (43 loc) · 1.33 KB
/
wc-opa-fmt.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
# This workflow is optional.
name: opa-fmt
on:
workflow_call:
inputs:
ref:
required: false
type: string
secrets:
gh_app_id:
required: false
gh_app_private_key:
required: false
jobs:
opa-fmt:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: read # To checkout private repositories
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{inputs.ref}}
persist-credentials: false
- id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{secrets.gh_app_id}}
private_key: ${{secrets.gh_app_private_key}}
# contents:write - Push commits
permissions: >-
{"contents": "write"}
repositories: >-
["${{github.event.repository.name}}"]
- uses: aquaproj/aqua-installer@e2d0136abcf70b7a2f6f505720640750557c4b33 # v3.1.1
with:
aqua_version: v2.42.2
env:
AQUA_GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}
- uses: suzuki-shunsuke/github-action-opa-fmt@59d2b3726741e2aeb3fc96ba2cbdfd05ae879f28 # v0.1.0
with:
github_token: ${{steps.generate_token.outputs.token}}