From 3eff5146802e3445b5bb837507e7df0ba41f991c Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Thu, 9 Jan 2025 02:04:38 +0100 Subject: [PATCH] t4 --- .github/workflows/build_master.yml | 2 +- .github/workflows/translate_af.yml | 13 +++++++------ .github/workflows/translate_de.yml | 13 +++++++------ .github/workflows/translate_el.yml | 13 +++++++------ .github/workflows/translate_es.yml | 13 +++++++------ .github/workflows/translate_fr.yml | 13 +++++++------ .github/workflows/translate_hi.yml | 13 +++++++------ .github/workflows/translate_it.yml | 13 +++++++------ .github/workflows/translate_ja.yml | 13 +++++++------ .github/workflows/translate_ko.yml | 13 +++++++------ .github/workflows/translate_pl.yml | 13 +++++++------ .github/workflows/translate_pt.yml | 13 +++++++------ .github/workflows/translate_sr.yml | 13 +++++++------ .github/workflows/translate_sw.yml | 13 +++++++------ .github/workflows/translate_tr.yml | 13 +++++++------ .github/workflows/translate_uk.yml | 13 +++++++------ .github/workflows/translate_zh.yml | 13 +++++++------ .../az-authorization-privesc.md | 1 - .../gcp-services/gcp-source-repositories-enum.md | 2 +- 19 files changed, 114 insertions(+), 99 deletions(-) diff --git a/.github/workflows/build_master.yml b/.github/workflows/build_master.yml index a82a2375c..4fc4ace84 100644 --- a/.github/workflows/build_master.yml +++ b/.github/workflows/build_master.yml @@ -50,7 +50,7 @@ jobs: # Build the mdBook - name: Build mdBook - run: MDBOOK_BOOK__LANGUAGE=en mdbook build + run: MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Cat hacktricks-preprocessor.log #- name: Cat hacktricks-preprocessor.log diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index e10820cce..19c3044fb 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index 2db85f7c6..06fcb57b4 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_el.yml b/.github/workflows/translate_el.yml index eb3e0968d..08ce93811 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index 49e3307a3..384ee3178 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index c4d7a10f7..9d0ab4a10 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_hi.yml b/.github/workflows/translate_hi.yml index 554dedecd..bd989303f 100644 --- a/.github/workflows/translate_hi.yml +++ b/.github/workflows/translate_hi.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index 37fef9afc..9073745bd 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_ja.yml b/.github/workflows/translate_ja.yml index 0095157ba..84e487fb8 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_ko.yml b/.github/workflows/translate_ko.yml index 3876881ce..d83fd3785 100644 --- a/.github/workflows/translate_ko.yml +++ b/.github/workflows/translate_ko.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index 4e6545caa..8834cfca7 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index 61ed78ac7..78f454f36 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_sr.yml b/.github/workflows/translate_sr.yml index fa3cdbf6e..1ba533556 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index c069047aa..e1459dca1 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index a95795d1c..45f8a5449 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_uk.yml b/.github/workflows/translate_uk.yml index 1b506e4bd..d9decd685 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/.github/workflows/translate_zh.yml b/.github/workflows/translate_zh.yml index af85d63c4..9d0cc05aa 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -46,7 +46,8 @@ jobs: git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud git config --global user.name 'Translator' git config --global user.email 'github-actions@github.com' - git checkout af + git config pull.rebase false + git checkout $BRANCH git pull git checkout master @@ -58,18 +59,18 @@ jobs: echo -n "$file , " >> /tmp/file_paths.txt fi done - python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 - name: Commit and push changes run: | - git checkout af + git checkout $BRANCH git add -A - git commit -m "Translated Afrikaans files" || true - git push --set-upstream origin af + git commit -m "Translated $LANGUAGE files" || true + git push --set-upstream origin $BRANCH - name: Build mdBook run: | - MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) + MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1) # Login in AWs - name: Configure AWS credentials using OIDC diff --git a/src/pentesting-cloud/azure-security/az-privilege-escalation/az-authorization-privesc.md b/src/pentesting-cloud/azure-security/az-privilege-escalation/az-authorization-privesc.md index 629cfa4fe..3076c610d 100644 --- a/src/pentesting-cloud/azure-security/az-privilege-escalation/az-authorization-privesc.md +++ b/src/pentesting-cloud/azure-security/az-privilege-escalation/az-authorization-privesc.md @@ -82,4 +82,3 @@ az rest --method PUT \ {{#include ../../../banners/hacktricks-training.md}} - diff --git a/src/pentesting-cloud/gcp-security/gcp-services/gcp-source-repositories-enum.md b/src/pentesting-cloud/gcp-security/gcp-services/gcp-source-repositories-enum.md index e4038354e..3f40c6ca6 100644 --- a/src/pentesting-cloud/gcp-security/gcp-services/gcp-source-repositories-enum.md +++ b/src/pentesting-cloud/gcp-security/gcp-services/gcp-source-repositories-enum.md @@ -43,7 +43,7 @@ gcloud source repos get-iam-policy gcloud source repos clone gcloud source repos get-iam-policy ... git add & git commit -m ... -git push --set-upstream origin master +git push --set-upstream origin $BRANCH git push -u origin master # Access via git