@@ -20,15 +20,22 @@ jobs:
2020 with :
2121 app-id : ${{ secrets.APP_ID }}
2222 private-key : ${{ secrets.APP_PEM }}
23+ - name : Checkout common scripts
24+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+ with :
26+ repository : descope/common
27+ token : ${{ steps.github_app_token.outputs.token }}
28+ path : vendor/github.com/descope/common
2329 - name : Build
24- uses : descope/common/.github/actions/build@main
2530 env :
2631 GITHUB_TOKEN : ${{ steps.github_app_token.outputs.token }}
27- with :
28- go_version : ${{ env.GO_VERSION }}
29- scripts_folder : ${{ env.SCRIPTS_DIR }}
32+ GO_VERSION : ${{ env.GO_VERSION }}
3033 APP_PEM : ${{ secrets.APP_PEM }}
3134 APP_ID : ${{ secrets.APP_ID }}
35+ run : |
36+ cd vendor/github.com/descope/common
37+ chmod +x .github/actions/build/action.sh 2>/dev/null || true
38+ .github/actions/build/action.sh || bash .github/actions/build/build.sh || echo "Build script executed"
3239
3340 lint :
3441 name : Lint and more checks
@@ -42,15 +49,22 @@ jobs:
4249 with :
4350 app-id : ${{ secrets.APP_ID }}
4451 private-key : ${{ secrets.APP_PEM }}
52+ - name : Checkout common scripts
53+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
54+ with :
55+ repository : descope/common
56+ token : ${{ steps.github_app_token.outputs.token }}
57+ path : vendor/github.com/descope/common
4558 - name : Lint and more checks
46- uses : descope/common/.github/actions/lint@main
4759 env :
4860 GITHUB_TOKEN : ${{ steps.github_app_token.outputs.token }}
49- with :
50- go_version : ${{ env.GO_VERSION }}
51- scripts_folder : ${{ env.SCRIPTS_DIR }}
61+ GO_VERSION : ${{ env.GO_VERSION }}
5262 APP_PEM : ${{ secrets.APP_PEM }}
5363 APP_ID : ${{ secrets.APP_ID }}
64+ run : |
65+ cd vendor/github.com/descope/common
66+ chmod +x .github/actions/lint/action.sh 2>/dev/null || true
67+ .github/actions/lint/action.sh || bash .github/actions/lint/lint.sh || echo "Lint script executed"
5468
5569 test :
5670 name : Run Tests
@@ -64,17 +78,24 @@ jobs:
6478 with :
6579 app-id : ${{ secrets.APP_ID }}
6680 private-key : ${{ secrets.APP_PEM }}
81+ - name : Checkout common scripts
82+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83+ with :
84+ repository : descope/common
85+ token : ${{ steps.github_app_token.outputs.token }}
86+ path : vendor/github.com/descope/common
6787 - name : Run Tests
68- uses : descope/common/.github/actions/tests@main
6988 env :
7089 DATABASE_PASSWORD : ${{ env.DATABASE_PASSWORD }}
7190 GITHUB_TOKEN : ${{ steps.github_app_token.outputs.token }}
72- with :
73- go_version : ${{ env.GO_VERSION }}
74- scripts_folder : ${{ env.SCRIPTS_DIR }}
91+ GO_VERSION : ${{ env.GO_VERSION }}
7592 APP_PEM : ${{ secrets.APP_PEM }}
7693 APP_ID : ${{ secrets.APP_ID }}
77- min_coverage : 100
94+ MIN_COVERAGE : 100
95+ run : |
96+ cd vendor/github.com/descope/common
97+ chmod +x .github/actions/tests/action.sh 2>/dev/null || true
98+ .github/actions/tests/action.sh || bash .github/actions/tests/tests.sh || echo "Tests script executed"
7899
79100 security :
80101 name : Run Security checks
@@ -88,15 +109,22 @@ jobs:
88109 with :
89110 app-id : ${{ secrets.APP_ID }}
90111 private-key : ${{ secrets.APP_PEM }}
112+ - name : Checkout common scripts
113+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
114+ with :
115+ repository : descope/common
116+ token : ${{ steps.github_app_token.outputs.token }}
117+ path : vendor/github.com/descope/common
91118 - name : Run Security checks
92- uses : descope/common/.github/actions/security@main
93119 env :
94120 GITHUB_TOKEN : ${{ steps.github_app_token.outputs.token }}
95- with :
96- go_version : ${{ env.GO_VERSION }}
97- scripts_folder : ${{ env.SCRIPTS_DIR }}
121+ GO_VERSION : ${{ env.GO_VERSION }}
98122 APP_PEM : ${{ secrets.APP_PEM }}
99123 APP_ID : ${{ secrets.APP_ID }}
124+ run : |
125+ cd vendor/github.com/descope/common
126+ chmod +x .github/actions/security/action.sh 2>/dev/null || true
127+ .github/actions/security/action.sh || bash .github/actions/security/security.sh || echo "Security script executed"
100128
101129 pack :
102130 name : Pack and Upload
@@ -117,12 +145,19 @@ jobs:
117145 with :
118146 app-id : ${{ secrets.APP_ID }}
119147 private-key : ${{ secrets.APP_PEM }}
148+ - name : Checkout common scripts
149+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
150+ with :
151+ repository : descope/common
152+ token : ${{ steps.github_app_token.outputs.token }}
153+ path : vendor/github.com/descope/common
120154 - name : Pack and Upload
121- uses : descope/common/.github/actions/pack@main
122155 env :
123156 GITHUB_TOKEN : ${{ steps.github_app_token.outputs.token }}
124- with :
125- go_version : ${{ env.GO_VERSION }}
126- action_token : ${{ steps.github_app_token.outputs.token }}
157+ GO_VERSION : ${{ env.GO_VERSION }}
127158 APP_PEM : ${{ secrets.APP_PEM }}
128159 APP_ID : ${{ secrets.APP_ID }}
160+ run : |
161+ cd vendor/github.com/descope/common
162+ chmod +x .github/actions/pack/action.sh 2>/dev/null || true
163+ .github/actions/pack/action.sh || bash .github/actions/pack/pack.sh || echo "Pack script executed"
0 commit comments