From d4e34744d037f286c62f03b63fab3d796ca3927e Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:06:06 -0300 Subject: [PATCH 01/13] (Attempt #1): Fix "Wordlist Updater - Awesome list of secrets in environment variables" --- ...ter_awesome-list-of-secrets-in-environment-variables.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 d139fcc0..9f400b38 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 @@ -21,10 +21,14 @@ jobs: run: | git config --local user.email "example@github.com" git config --local user.name "GitHub Action" + - name: Set environment variables + run: echo "::set-output name=gitstatus::$(git status --porcelain)" - name: Commit changed files + if: steps.version.outputs.gitstatus != "" run: git commit -m "[Github Action] Updated awesome-environment-variable-names.txt" - name: Push changes # push the output folder to your repo - uses: ad-m/github-push-action@master + if: steps.version.outputs.gitstatus != "" + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} force: true From 79c33157042aa3eb6ca5001e078ed7a3a6871b5a Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:10:25 -0300 Subject: [PATCH 02/13] Added test trigger to the "awesome env variables" github action --- ...pdater_awesome-list-of-secrets-in-environment-variables.yml | 3 +++ 1 file changed, 3 insertions(+) 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 9f400b38..1273833e 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 @@ -3,6 +3,9 @@ name: Wordlist Updater - Awesome list of secrets in environment variables on: schedule: - cron: '0 0 1 * *' # once a month at midnight (thanks https://crontab.guru) + push: + paths: + - 'test.txt' jobs: update_combined_words: From d2613c5eab404dab7696dbe2a81282aa848d303d Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:11:15 -0300 Subject: [PATCH 03/13] This is a github actions test --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 00000000..e69de29b From f70fe55e474c2242ce587013781cd9020c1db379 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:13:33 -0300 Subject: [PATCH 04/13] (Attempt #2): Fix "Wordlist Updater - Awesome list of secrets in environment variables" --- ...updater_awesome-list-of-secrets-in-environment-variables.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1273833e..ea317445 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 @@ -25,7 +25,7 @@ jobs: git config --local user.email "example@github.com" git config --local user.name "GitHub Action" - name: Set environment variables - run: echo "::set-output name=gitstatus::$(git status --porcelain)" + run: echo "::set-output name=gitstatus::$(git status --porcelain)" - name: Commit changed files if: steps.version.outputs.gitstatus != "" run: git commit -m "[Github Action] Updated awesome-environment-variable-names.txt" From ce77325aa49f0f473598c3a99de77ddd4084e265 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:30:00 -0300 Subject: [PATCH 05/13] (Attempt #3): Fix "Wordlist Updater - Awesome list of secrets in environment variables" --- ...list-of-secrets-in-environment-variables.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 ea317445..1f4a2d27 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 @@ -14,23 +14,32 @@ jobs: - uses: actions/checkout@v2 - name: Generate awesome-environment-variable-names.txt run: cd Discovery/Variables && wget https://raw.githubusercontent.com/Puliczek/awesome-list-of-secrets-in-environment-variables/main/raw_list.txt -O awesome-environment-variable-names.txt + - name: Switching from HTTPS to SSH run: git remote set-url origin git@github.com:danielmiessler/SecLists.git + - name: Check for changes run: git status + - name: Stage changed files run: git add Discovery/Variables/awesome-environment-variable-names.txt + - name: Configure git email and username run: | git config --local user.email "example@github.com" git config --local user.name "GitHub Action" - - name: Set environment variables - run: echo "::set-output name=gitstatus::$(git status --porcelain)" + + - name: Check git status and save to output + id: myoutputs + run: echo "::set-output name=gitstatus::$(git status --porcelain)" + - name: Commit changed files - if: steps.version.outputs.gitstatus != "" + if: steps.myoutputs.outputs.gitstatus != "" run: git commit -m "[Github Action] Updated awesome-environment-variable-names.txt" + - name: Push changes # push the output folder to your repo - if: steps.version.outputs.gitstatus != "" + if: steps.myoutputs.outputs.gitstatus != "" + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} From 22893817c9fe25ffabbfcf201a5c87dd2269a9b4 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:31:05 -0300 Subject: [PATCH 06/13] (Attempt #4): Fix "Wordlist Updater - Awesome list of secrets in environment variables" --- ...pdater_awesome-list-of-secrets-in-environment-variables.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 1f4a2d27..ba6e5adb 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 @@ -39,8 +39,7 @@ jobs: - name: Push changes # push the output folder to your repo if: steps.myoutputs.outputs.gitstatus != "" - - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} force: true From 7f9b2390c126620a9920927092efc6255510d6c4 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:35:14 -0300 Subject: [PATCH 07/13] (Attempt #5): Fix "Wordlist Updater - Awesome list of secrets in environment variables" --- ...updater_awesome-list-of-secrets-in-environment-variables.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ba6e5adb..23b2a921 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 @@ -39,7 +39,7 @@ jobs: - name: Push changes # push the output folder to your repo if: steps.myoutputs.outputs.gitstatus != "" - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} force: true From 3b17a2ffe07c1677aad7e2b5028f75a57504d560 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:36:42 -0300 Subject: [PATCH 08/13] this is a github actions test --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index e69de29b..8bd6648e 100644 --- a/test.txt +++ b/test.txt @@ -0,0 +1 @@ +asdf From f9a98ea32a8576ed15555f45cb796e149e8dac8b Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:40:10 -0300 Subject: [PATCH 09/13] (Attempt #6): Fix "Wordlist Updater - Awesome list of secrets in environment variables" --- ...dater_awesome-list-of-secrets-in-environment-variables.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 23b2a921..b99fc967 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 @@ -34,11 +34,11 @@ jobs: run: echo "::set-output name=gitstatus::$(git status --porcelain)" - name: Commit changed files - if: steps.myoutputs.outputs.gitstatus != "" + if: steps.myoutputs.outputs.gitstatus != '' run: git commit -m "[Github Action] Updated awesome-environment-variable-names.txt" - name: Push changes # push the output folder to your repo - if: steps.myoutputs.outputs.gitstatus != "" + if: steps.myoutputs.outputs.gitstatus != '' uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} From fcaa456468ecb5c07f3fa9afcb1d54dc33aac2d5 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:40:41 -0300 Subject: [PATCH 10/13] this is a github actions test --- test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.txt b/test.txt index 8bd6648e..fcaa1645 100644 --- a/test.txt +++ b/test.txt @@ -1 +1 @@ -asdf +asdasdsaasdf From 87036bf799b8fbcec8b123fc02a9528b91ffb7a9 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:48:14 -0300 Subject: [PATCH 11/13] Improved the job name for the "Wordlist Updater - Awesome list of secrets in environment variables" github action --- ...wesome-list-of-secrets-in-environment-variables.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 b99fc967..c5a0f98f 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 @@ -6,9 +6,8 @@ on: push: paths: - 'test.txt' - jobs: - update_combined_words: + update_awesome-environment-variable-names: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -18,9 +17,6 @@ jobs: - name: Switching from HTTPS to SSH run: git remote set-url origin git@github.com:danielmiessler/SecLists.git - - name: Check for changes - run: git status - - name: Stage changed files run: git add Discovery/Variables/awesome-environment-variable-names.txt @@ -31,7 +27,9 @@ jobs: - name: Check git status and save to output id: myoutputs - run: echo "::set-output name=gitstatus::$(git status --porcelain)" + run: | + git status + echo "::set-output name=gitstatus::$(git status --porcelain)" - name: Commit changed files if: steps.myoutputs.outputs.gitstatus != '' From f043ce0d8713a7f4f5479c18bd1981b0e84e91ee Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:48:40 -0300 Subject: [PATCH 12/13] this is a github actions test --- test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.txt b/test.txt index fcaa1645..e17e0283 100644 --- a/test.txt +++ b/test.txt @@ -1 +1 @@ -asdasdsaasdf +dasdasdasdasdasdsaasdf From ae4e89a446b7675759742d97547bb82550197e27 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 1 Oct 2022 03:51:45 -0300 Subject: [PATCH 13/13] Removed test triggers for a github action --- ...dater_awesome-list-of-secrets-in-environment-variables.yml | 4 +--- test.txt | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 test.txt 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 c5a0f98f..fed92094 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 @@ -3,9 +3,7 @@ name: Wordlist Updater - Awesome list of secrets in environment variables on: schedule: - cron: '0 0 1 * *' # once a month at midnight (thanks https://crontab.guru) - push: - paths: - - 'test.txt' + jobs: update_awesome-environment-variable-names: runs-on: ubuntu-latest diff --git a/test.txt b/test.txt deleted file mode 100644 index e17e0283..00000000 --- a/test.txt +++ /dev/null @@ -1 +0,0 @@ -dasdasdasdasdasdsaasdf