File tree 3 files changed +33
-7
lines changed
3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
build :
15
15
runs-on : ubuntu-latest
16
+ environment : upload
17
+
18
+ permissions :
19
+ id-token : write # Required by Akeyless
20
+ contents : read
21
+ packages : read
16
22
17
23
steps :
24
+ - name : Import Secrets
25
+ id : import-secrets
26
+ uses : LanceMcCarthy/akeyless-action@v3
27
+ with :
28
+ access-id : ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
29
+ static-secrets : |
30
+ {
31
+ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN",
32
+ "/WebComponents/prod/tokens/PROGRESS_NPM_REGISTRY_TOKEN": "NPM_TOKEN"
33
+ }
34
+ export-secrets-to-environment : false
35
+
18
36
- name : Check out branch
19
- uses : actions/checkout@v2
37
+ uses : actions/checkout@v3
20
38
with :
21
39
fetch-depth : 0 # Fetch all branches
22
40
26
44
- name : Publish release
27
45
run : ./.github/workflows/release.sh
28
46
env :
29
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
30
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
47
+ NPM_TOKEN : ${{ steps.import- secrets.outputs .NPM_TOKEN }}
48
+ GH_TOKEN : ${{ steps.import- secrets.outputs .GH_TOKEN }}
Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : ubuntu-latest
14
14
15
+ concurrency :
16
+ group : ${{ github.workflow }}-${{ github.ref }}
17
+ cancel-in-progress : true
18
+
15
19
steps :
16
20
- name : Check out repository
17
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
18
22
19
23
- name : Install modules
20
24
run : npm install --no-audit --ignore-scripts
Original file line number Diff line number Diff line change @@ -10,13 +10,17 @@ jobs:
10
10
build :
11
11
runs-on : ubuntu-latest
12
12
13
+ permissions :
14
+ id-token : write # Required by Akeyless
15
+ contents : read
16
+ packages : read
17
+
13
18
steps :
14
19
- name : Check out master
15
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v3
16
21
with :
17
22
fetch-depth : 0 # Fetch all branches
18
- token : ${{ secrets.GH_TOKEN }}
23
+ token : ${{ steps.import- secrets.outputs .GH_TOKEN }}
19
24
20
25
- name : Fast-forward master to develop
21
26
run : ./.github/workflows/ff-master.sh
22
-
You can’t perform that action at this time.
0 commit comments