File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
+ - name : Get token
21
+ id : get_token
22
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
23
+ with :
24
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
25
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
26
+ permissions : >-
27
+ {
28
+ "contents": "write",
29
+ "pull_requests": "write"
30
+ }
31
+
20
32
- uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
21
33
with :
22
34
registry : ghcr.io
@@ -27,13 +39,13 @@ jobs:
27
39
with :
28
40
command : --experimental compose diff
29
41
env :
30
- GITHUB_TOKEN : ${{ secrets.UPDATECLI_GH_TOKEN }}
42
+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
31
43
32
44
- uses : elastic/oblt-actions/updatecli/run@v1
33
45
with :
34
46
command : --experimental compose apply
35
47
env :
36
- GITHUB_TOKEN : ${{ secrets.UPDATECLI_GH_TOKEN }}
48
+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
37
49
38
50
- if : failure()
39
51
uses : elastic/oblt-actions/slack/send@v1
You can’t perform that action at this time.
0 commit comments