From 47483a8239101039153decb188117cf277f0ae89 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 a82a2375cf..4fc4ace849 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 e10820ccef..19c3044fbc 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 2db85f7c63..06fcb57b41 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 eb3e0968db..08ce93811f 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 49e3307a37..384ee3178b 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 c4d7a10f7e..9d0ab4a10f 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 554dedecd8..bd989303fd 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 37fef9afc9..9073745bd2 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 0095157ba7..84e487fb8d 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 3876881ce9..d83fd37856 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 4e6545caaa..8834cfca75 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 61ed78ac76..78f454f36a 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 fa3cdbf6ea..1ba533556f 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 c069047aa2..e1459dca1e 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 a95795d1cc..45f8a54495 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 1b506e4bdf..d9decd685e 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 af85d63c4d..9d0cc05aa4 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 629cfa4fe3..3076c610da 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 e4038354ec..3f40c6ca63 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