File tree Expand file tree Collapse file tree 5 files changed +18
-18
lines changed Expand file tree Collapse file tree 5 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,8 @@ ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
322322ENV PATH="$JAVA_HOME/bin:${PATH}"
323323
324324# PHP installation
325- RUN wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
325+ RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
326+ && wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
326327 && wget --tries=5 -q -O phive.phar.asc https://phar.io/releases/phive.phar.asc \
327328 && PHAR_KEY_ID="0x9D8A98B29B2D5D79" \
328329 && ( gpg --keyserver keyserver.pgp.com --recv-keys "$PHAR_KEY_ID" \
@@ -499,13 +500,13 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
499500 && curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wget Perl::Critic \
500501
501502# phpcs installation
502- && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192 \
503+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192 \
503504
504505# phpstan installation
505- && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720 \
506+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720 \
506507
507508# psalm installation
508- && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 \
509+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 \
509510
510511# phplint installation
511512 && composer global require --ignore-platform-reqs overtrue/phplint ^5.3 \
Original file line number Diff line number Diff line change @@ -265,7 +265,8 @@ ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
265265ENV PATH="$JAVA_HOME/bin:${PATH}"
266266
267267# PHP installation
268- RUN wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
268+ RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
269+ && wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
269270 && wget --tries=5 -q -O phive.phar.asc https://phar.io/releases/phive.phar.asc \
270271 && PHAR_KEY_ID="0x9D8A98B29B2D5D79" \
271272 && ( gpg --keyserver keyserver.pgp.com --recv-keys "$PHAR_KEY_ID" \
@@ -362,13 +363,13 @@ RUN go install github.com/rhysd/actionlint/cmd/actionlint@latest && go clean --c
362363 && chmod 755 /usr/local/bin/checkmake \
363364
364365# phpcs installation
365- && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192 \
366+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192 \
366367
367368# phpstan installation
368- && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720 \
369+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720 \
369370
370371# psalm installation
371- && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 \
372+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 \
372373
373374# phplint installation
374375 && composer global require --ignore-platform-reqs overtrue/phplint ^5.3 \
Original file line number Diff line number Diff line change @@ -215,7 +215,8 @@ COPY --from=gitleaks /usr/bin/gitleaks /usr/bin/
215215# ############################################################################################
216216# OTHER__START
217217# PHP installation
218- RUN wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
218+ RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
219+ && wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
219220 && wget --tries=5 -q -O phive.phar.asc https://phar.io/releases/phive.phar.asc \
220221 && PHAR_KEY_ID="0x9D8A98B29B2D5D79" \
221222 && ( gpg --keyserver keyserver.pgp.com --recv-keys "$PHAR_KEY_ID" \
@@ -282,13 +283,13 @@ RUN go install github.com/rhysd/actionlint/cmd/actionlint@latest && go clean --c
282283 && find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
283284
284285# phpcs installation
285- && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192 \
286+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192 \
286287
287288# phpstan installation
288- && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720 \
289+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720 \
289290
290291# psalm installation
291- && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 \
292+ && export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 \
292293
293294# phplint installation
294295 && composer global require --ignore-platform-reqs overtrue/phplint ^5.3 \
Original file line number Diff line number Diff line change @@ -134,7 +134,8 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
134134# ############################################################################################
135135# OTHER__START
136136# PHP installation
137- RUN wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
137+ RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
138+ && wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
138139 && wget --tries=5 -q -O phive.phar.asc https://phar.io/releases/phive.phar.asc \
139140 && PHAR_KEY_ID="0x9D8A98B29B2D5D79" \
140141 && ( gpg --keyserver keyserver.pgp.com --recv-keys "$PHAR_KEY_ID" \
@@ -150,7 +151,7 @@ RUN wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
150151ENV PATH="/root/.composer/vendor/bin:$PATH"
151152
152153# psalm installation
153- RUN phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5
154+ RUN export GITHUB_AUTH_TOKEN= "$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5
154155
155156
156157# OTHER__END
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ install:
2121 - dpkg
2222 dockerfile :
2323 - |
24- ARG GITHUB_AUTH_TOKEN
2524 RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
2625 && wget --tries=5 -q -O phive.phar https://phar.io/releases/phive.phar \
2726 && wget --tries=5 -q -O phive.phar.asc https://phar.io/releases/phive.phar.asc \
@@ -54,7 +53,6 @@ linters:
5453 install :
5554 dockerfile :
5655 - |
57- ARG GITHUB_AUTH_TOKEN
5856 RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192
5957 ide :
6058 atom :
@@ -99,7 +97,6 @@ linters:
9997 install :
10098 dockerfile :
10199 - |
102- ARG GITHUB_AUTH_TOKEN
103100 RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install phpstan -g --trust-gpg-keys CF1A108D0E7AE720
104101 ide :
105102 idea :
@@ -134,7 +131,6 @@ linters:
134131 install :
135132 dockerfile :
136133 - |
137- ARG GITHUB_AUTH_TOKEN
138134 RUN export GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5
139135 ide :
140136 idea :
You can’t perform that action at this time.
0 commit comments