Skip to content

Commit

Permalink
ci(FIR-35886): Replace secrets automatically (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Aug 20, 2024
1 parent d0681d7 commit 0ff6832
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration-tests-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
run: |
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/functional/ --alluredir=allure-results
- name: Make sure no secrets make it to the logs
if: always()
run: |
find allure-results -type f -exec sed -i 's/${{ secrets.FIREBOLT_STG_USERNAME }}/REDACTED/g' {} +
find allure-results -type f -exec sed -i 's/${{ secrets.FIREBOLT_STG_PASSWORD }}/REDACTED/g' {} +
- name: Save failed tests
id: cache-tests-save
uses: actions/cache/save@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
run: |
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/functional/ --alluredir=allure-results
- name: Make sure no secrets make it to the logs
if: always()
run: |
find allure-results -type f -exec sed -i 's/${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}/REDACTED/g' {} +
find allure-results -type f -exec sed -i 's/${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}/REDACTED/g' {} +
- name: Save failed tests
id: cache-tests-save
uses: actions/cache/save@v3
Expand Down

0 comments on commit 0ff6832

Please sign in to comment.