Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1287841?usp=email )
Change subject: tests: Mask secrets for tests
......................................................................
tests: Mask secrets for tests
Bug: T426395
Change-Id: Ie090cee90b3700728a9ba7fefd7aa55a6c51548c
---
M .github/workflows/oauth_tests-ci.yml
1 file changed, 18 insertions(+), 2 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/.github/workflows/oauth_tests-ci.yml
b/.github/workflows/oauth_tests-ci.yml
index be48b1a..d0297e8 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -77,15 +77,31 @@
if: ${{ matrix.family == 'wpbeta' }}
run: |
python pwb.py generate_family_file
http://${{matrix.code}}.wikipedia.beta.wmcloud.org/ wpbeta y
+
- name: Generate user files
run: |
- python -Werror::UserWarning -m pwb generate_user_files
-family:${{matrix.family}} -code:${{matrix.code}} -user:${{
env.PYWIKIBOT_USERNAME }} -v -debug;
+ python -Werror::UserWarning -m pwb generate_user_files \
+ -family:${{matrix.family}} \
+ -code:${{matrix.code}} \
+ -user:${{ env.PYWIKIBOT_USERNAME }} \
+ -v \
+ -debug;
+ echo "::add-mask::$CK"
+ echo "::add-mask::$CS"
+ echo "::add-mask::$AK"
+ echo "::add-mask::$AS"
echo "usernames['commons']['beta'] = '${{ env.PYWIKIBOT_USERNAME
}}'" >> user-config.py
echo "usernames['meta']['meta'] = '${{ env.PYWIKIBOT_USERNAME }}'"
>> user-config.py
- echo "authenticate['${{ matrix.domain }}'] = ('${{
steps.split.outputs._0 }}', '${{ steps.split.outputs._1 }}', '${{
steps.split.outputs._2 }}', '${{ steps.split.outputs._3 }}')" >> user-config.py
+ echo "authenticate['${{ matrix.domain }}'] = ('$CK', '$CS', '$AK',
'$AS')" >> user-config.py
echo "noisysleep = float('inf')" >> user-config.py
echo "maximum_GET_length = 5000" >> user-config.py
echo "console_encoding = 'utf8'" >> user-config.py
+ env:
+ CK: ${{ steps.split.outputs._0 }}
+ CS: ${{ steps.split.outputs._1 }}
+ AK: ${{ steps.split.outputs._2 }}
+ AS: ${{ steps.split.outputs._3 }}
+
- name: Oauth tests with unittest
timeout-minutes: 8
env:
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1287841?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie090cee90b3700728a9ba7fefd7aa55a6c51548c
Gerrit-Change-Number: 1287841
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]