File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : " Release"
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- master
6
7
- beta
7
8
- alpha
8
9
10
+ permissions :
11
+ id-token : write # Required for OIDC token generation
12
+
9
13
jobs :
10
14
release :
11
15
runs-on : ubuntu-latest
12
16
steps :
13
- # - name: Wait for other checks to succeed
17
+ - name : Get GitHub App Token
18
+ id : token
19
+ uses : SocialGouv/token-bureau@main
20
+ with :
21
+ token-bureau-url : https://token-bureau.fabrique.social.gouv.fr
22
+ audience : socialgouv
23
+
24
+ # - name: Wait for other checks to succeed
14
25
# uses: lewagon/wait-on-check-action@v0.2
15
26
# with:
16
27
# ref: ${{ github.ref }}
20
31
- name : Checkout repository
21
32
uses : actions/checkout@v3
22
33
with :
23
- token : ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
34
+ token : ${{ steps.token.outputs.token }}
24
35
fetch-depth : " 0" # Pull all commits, required for lerna version
25
36
26
37
- uses : actions/setup-node@v3
47
58
GIT_AUTHOR_NAME : ${{ secrets.SOCIALGROOVYBOT_NAME }}
48
59
GIT_COMMITTER_EMAIL : ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
49
60
GIT_COMMITTER_NAME : ${{ secrets.SOCIALGROOVYBOT_NAME }}
50
- GH_TOKEN : ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
61
+ GH_TOKEN : ${{ steps.token.outputs.token }}
51
62
shell : bash
52
63
run : |
53
64
if [[ "$GITHUB_REF" == *"alpha"* ]]; then
You can’t perform that action at this time.
0 commit comments