@@ -31,21 +31,25 @@ jobs:
3131 runs-on : ubuntu-latest
3232 steps :
3333 - uses : actions/checkout@v4
34+ - name : Mint biometric-engines access token
35+ id : biometric-engines-token
36+ uses : actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
37+ with :
38+ client-id : ${{ secrets.BIOMETRIC_ENGINES_APP_ID }}
39+ private-key : ${{ secrets.BIOMETRIC_ENGINES_APP_PRIVATE_KEY }}
40+ owner : worldcoin
41+ repositories : biometric-engines
3442 - uses : dtolnay/rust-toolchain@1.97.0
3543 with :
3644 components : clippy
3745 - uses : Swatinem/rust-cache@v2
3846 - name : Configure private Git dependencies
3947 env :
40- GIT_HUB_TOKEN : ${{ secrets.GIT_HUB_TOKEN }}
48+ BIOMETRIC_ENGINES_TOKEN : ${{ steps.biometric-engines-token.outputs.token }}
4149 run : |
42- if [[ -z "$GIT_HUB_TOKEN" ]]; then
43- echo "::error::GIT_HUB_TOKEN is required to fetch private dependencies"
44- exit 1
45- fi
4650 git config --global \
47- url."https://${GIT_HUB_TOKEN}:x-oauth-basic @github.com/".insteadOf \
48- "https://github.com/"
51+ url."https://x-access-token:${BIOMETRIC_ENGINES_TOKEN} @github.com/worldcoin/biometric-engines ".insteadOf \
52+ "https://github.com/worldcoin/biometric-engines "
4953 - name : Run Clippy
5054 run : cargo clippy --locked --all-targets --all-features --
5155
@@ -54,19 +58,23 @@ jobs:
5458 runs-on : ubuntu-latest
5559 steps :
5660 - uses : actions/checkout@v4
61+ - name : Mint biometric-engines access token
62+ id : biometric-engines-token
63+ uses : actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
64+ with :
65+ client-id : ${{ secrets.BIOMETRIC_ENGINES_APP_ID }}
66+ private-key : ${{ secrets.BIOMETRIC_ENGINES_APP_PRIVATE_KEY }}
67+ owner : worldcoin
68+ repositories : biometric-engines
5769 - uses : dtolnay/rust-toolchain@1.97.0
5870 - uses : Swatinem/rust-cache@v2
5971 - name : Configure private Git dependencies
6072 env :
61- GIT_HUB_TOKEN : ${{ secrets.GIT_HUB_TOKEN }}
73+ BIOMETRIC_ENGINES_TOKEN : ${{ steps.biometric-engines-token.outputs.token }}
6274 run : |
63- if [[ -z "$GIT_HUB_TOKEN" ]]; then
64- echo "::error::GIT_HUB_TOKEN is required to fetch private dependencies"
65- exit 1
66- fi
6775 git config --global \
68- url."https://${GIT_HUB_TOKEN}:x-oauth-basic @github.com/".insteadOf \
69- "https://github.com/"
76+ url."https://x-access-token:${BIOMETRIC_ENGINES_TOKEN} @github.com/worldcoin/biometric-engines ".insteadOf \
77+ "https://github.com/worldcoin/biometric-engines "
7078 - name : Build debug
7179 run : cargo build --locked --verbose
7280 - name : Build release
@@ -77,19 +85,23 @@ jobs:
7785 runs-on : ubuntu-latest
7886 steps :
7987 - uses : actions/checkout@v4
88+ - name : Mint biometric-engines access token
89+ id : biometric-engines-token
90+ uses : actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
91+ with :
92+ client-id : ${{ secrets.BIOMETRIC_ENGINES_APP_ID }}
93+ private-key : ${{ secrets.BIOMETRIC_ENGINES_APP_PRIVATE_KEY }}
94+ owner : worldcoin
95+ repositories : biometric-engines
8096 - uses : dtolnay/rust-toolchain@1.97.0
8197 - uses : Swatinem/rust-cache@v2
8298 - name : Configure private Git dependencies
8399 env :
84- GIT_HUB_TOKEN : ${{ secrets.GIT_HUB_TOKEN }}
100+ BIOMETRIC_ENGINES_TOKEN : ${{ steps.biometric-engines-token.outputs.token }}
85101 run : |
86- if [[ -z "$GIT_HUB_TOKEN" ]]; then
87- echo "::error::GIT_HUB_TOKEN is required to fetch private dependencies"
88- exit 1
89- fi
90102 git config --global \
91- url."https://${GIT_HUB_TOKEN}:x-oauth-basic @github.com/".insteadOf \
92- "https://github.com/"
103+ url."https://x-access-token:${BIOMETRIC_ENGINES_TOKEN} @github.com/worldcoin/biometric-engines ".insteadOf \
104+ "https://github.com/worldcoin/biometric-engines "
93105 - name : Run tests
94106 run : cargo test --locked --all --verbose
95107
@@ -104,17 +116,21 @@ jobs:
104116 continue-on-error : ${{ matrix.checks == 'advisories' }}
105117 steps :
106118 - uses : actions/checkout@v4
119+ - name : Mint biometric-engines access token
120+ id : biometric-engines-token
121+ uses : actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
122+ with :
123+ client-id : ${{ secrets.BIOMETRIC_ENGINES_APP_ID }}
124+ private-key : ${{ secrets.BIOMETRIC_ENGINES_APP_PRIVATE_KEY }}
125+ owner : worldcoin
126+ repositories : biometric-engines
107127 - name : Configure private Git dependencies
108128 env :
109- GIT_HUB_TOKEN : ${{ secrets.GIT_HUB_TOKEN }}
129+ BIOMETRIC_ENGINES_TOKEN : ${{ steps.biometric-engines-token.outputs.token }}
110130 run : |
111- if [[ -z "$GIT_HUB_TOKEN" ]]; then
112- echo "::error::GIT_HUB_TOKEN is required to fetch private dependencies"
113- exit 1
114- fi
115131 git config --global \
116- url."https://${GIT_HUB_TOKEN}:x-oauth-basic @github.com/".insteadOf \
117- "https://github.com/"
132+ url."https://x-access-token:${BIOMETRIC_ENGINES_TOKEN} @github.com/worldcoin/biometric-engines ".insteadOf \
133+ "https://github.com/worldcoin/biometric-engines "
118134 - uses : EmbarkStudios/cargo-deny-action@v2
119135 with :
120136 command : check ${{ matrix.checks }}
0 commit comments