diff --git a/.github/workflows/readme-updater.yml b/.github/workflows/readme-updater.yml index b280572f1b1..13d8a1eabe1 100644 --- a/.github/workflows/readme-updater.yml +++ b/.github/workflows/readme-updater.yml @@ -10,6 +10,8 @@ jobs: update-readme: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Clone repository @@ -28,8 +30,8 @@ jobs: echo "[+] Files were changed! Pushing changed..." git add -A git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - git config --local user.email "example@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" git commit -m "[Github Action] Automated readme update." git push fi diff --git a/.github/workflows/remote-wordlists-updater.yml b/.github/workflows/remote-wordlists-updater.yml index f7b7b9816b1..aaa7210ab62 100644 --- a/.github/workflows/remote-wordlists-updater.yml +++ b/.github/workflows/remote-wordlists-updater.yml @@ -8,6 +8,8 @@ on: jobs: update-files: + permissions: + contents: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,8 +27,8 @@ jobs: echo "[+] Files were changed! Pushing changed..." git add --renormalize -A && git add -A git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - git config --local user.email "example@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" git commit -m "[Github Action] Automated trickest wordlists update." git push fi diff --git a/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml b/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml index fed92094f16..2cb2372678c 100644 --- a/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml +++ b/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml @@ -20,8 +20,8 @@ jobs: - name: Configure git email and username run: | - git config --local user.email "example@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" - name: Check git status and save to output id: myoutputs diff --git a/.github/workflows/wordlist-updater_combined_directories.yml b/.github/workflows/wordlist-updater_combined_directories.yml index 6ec25a8e487..3a11a359f27 100644 --- a/.github/workflows/wordlist-updater_combined_directories.yml +++ b/.github/workflows/wordlist-updater_combined_directories.yml @@ -3,36 +3,36 @@ name: Wordlist Updater - directories on: push: paths: - - 'Discovery/Web-Content/raft-small-directories.txt' - - 'Discovery/Web-Content/raft-small-directories-lowercase.txt' - - 'Discovery/Web-Content/directory-list-2.3-small.txt' - - 'Discovery/Web-Content/raft-medium-directories-lowercase.txt' - - 'Discovery/Web-Content/raft-medium-directories.txt' - - 'Discovery/Web-Content/directory-list-2.3-medium.txt' - - 'Discovery/Web-Content/apache.txt ' - - 'Discovery/Web-Content/directory-list-2.3-big.txt' - - 'Discovery/Web-Content/raft-large-directories-lowercase.txt' - - 'Discovery/Web-Content/raft-large-directories.txt ' - - 'Discovery/Web-Content/directory-list-1.0.txt' - - 'Discovery/Web-Content/combined_words.txt' + - 'Discovery/Web-Content/raft-small-directories.txt' + - 'Discovery/Web-Content/raft-small-directories-lowercase.txt' + - 'Discovery/Web-Content/directory-list-2.3-small.txt' + - 'Discovery/Web-Content/raft-medium-directories-lowercase.txt' + - 'Discovery/Web-Content/raft-medium-directories.txt' + - 'Discovery/Web-Content/directory-list-2.3-medium.txt' + - 'Discovery/Web-Content/apache.txt' + - 'Discovery/Web-Content/directory-list-2.3-big.txt' + - 'Discovery/Web-Content/raft-large-directories-lowercase.txt' + - 'Discovery/Web-Content/raft-large-directories.txt' + - 'Discovery/Web-Content/directory-list-1.0.txt' + - 'Discovery/Web-Content/combined_words.txt' jobs: - update_combined_words: + update_combined_directories: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Generate combined_directories.txt run: cd Discovery/Web-Content/ && cat raft-small-directories* directory-list-2.3-small.txt raft-medium-directories* directory-list-2.3-medium.txt apache.txt combined_words.txt directory-list-2.3-big.txt raft-large-directories* directory-list-1.0.txt | awk '! seen[$0]++' > combined_directories.txt - name: Switching from HTTPS to SSH - run: git remote set-url origin git@github.com:danielmiessler/SecLists.git + run: git remote set-url origin git@github.com:${{ GITHUB_REPOSITORY }}.git - name: Check for changes run: git status - name: Stage changed files run: git add Discovery/Web-Content/combined_directories.txt - name: Configure git email and username run: | - git config --local user.email "example@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" - name: Commit changed files run: git commit -m "[Github Action] Updated combined_directories.txt" - name: Push changes # push the output folder to your repo diff --git a/.github/workflows/wordlist-updater_combined_words.yml b/.github/workflows/wordlist-updater_combined_words.yml index 8c83249e8cc..0b0c1a788de 100644 --- a/.github/workflows/wordlist-updater_combined_words.yml +++ b/.github/workflows/wordlist-updater_combined_words.yml @@ -3,14 +3,14 @@ name: Wordlist Updater - words on: push: paths: - - 'Discovery/Web-Content/common.txt' - - 'Discovery/Web-Content/raft-small-words.txt' - - 'Discovery/Web-Content/raft-small-words-lowercase.txt' - - 'Discovery/Web-Content/raft-medium-words-lowercase.txt' - - 'Discovery/Web-Content/raft-medium-words.txt' - - 'Discovery/Web-Content/big.txt' - - 'Discovery/Web-Content/raft-large-words-lowercase.txt' - - 'Discovery/Web-Content/raft-large-words.txt' + - 'Discovery/Web-Content/common.txt' + - 'Discovery/Web-Content/raft-small-words.txt' + - 'Discovery/Web-Content/raft-small-words-lowercase.txt' + - 'Discovery/Web-Content/raft-medium-words-lowercase.txt' + - 'Discovery/Web-Content/raft-medium-words.txt' + - 'Discovery/Web-Content/big.txt' + - 'Discovery/Web-Content/raft-large-words-lowercase.txt' + - 'Discovery/Web-Content/raft-large-words.txt' jobs: update_combined_words: @@ -20,15 +20,15 @@ jobs: - name: Generate combined_words.txt run: cd Discovery/Web-Content/ && cat common.txt raft-small-words* raft-medium-words* big.txt raft-large-words* | awk '! seen[$0]++' > combined_words.txt - name: Switching from HTTPS to SSH - run: git remote set-url origin git@github.com:danielmiessler/SecLists.git + run: git remote set-url origin git@github.com:${{ GITHUB_REPOSITORY }}.git - name: Check for changes run: git status - name: Stage changed files run: git add Discovery/Web-Content/combined_words.txt - name: Configure git email and username run: | - git config --local user.email "example@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" - name: Commit changed files run: git commit -m "[Github Action] Updated combined_words.txt" - name: Push changes # push the output folder to your repo diff --git a/.github/workflows/wordlist-updater_fuzzing_etc_files.yml b/.github/workflows/wordlist-updater_fuzzing_etc_files.yml index 35f0283d57d..923257f57c6 100644 --- a/.github/workflows/wordlist-updater_fuzzing_etc_files.yml +++ b/.github/workflows/wordlist-updater_fuzzing_etc_files.yml @@ -28,8 +28,8 @@ jobs: - name: Configure git email and username run: | - git config --local user.email "example@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" - name: Check git status and save to output id: myoutputs