mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-08-15 15:36:17 +00:00
(Attempt #3): Fix "Wordlist Updater - Awesome list of secrets in environment variables"
This commit is contained in:
+13
-4
@@ -14,23 +14,32 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Generate awesome-environment-variable-names.txt
|
- 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
|
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
|
- 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:danielmiessler/SecLists.git
|
||||||
|
|
||||||
- name: Check for changes
|
- name: Check for changes
|
||||||
run: git status
|
run: git status
|
||||||
|
|
||||||
- name: Stage changed files
|
- name: Stage changed files
|
||||||
run: git add Discovery/Variables/awesome-environment-variable-names.txt
|
run: git add Discovery/Variables/awesome-environment-variable-names.txt
|
||||||
|
|
||||||
- name: Configure git email and username
|
- name: Configure git email and username
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "example@github.com"
|
git config --local user.email "example@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
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
|
- 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"
|
run: git commit -m "[Github Action] Updated awesome-environment-variable-names.txt"
|
||||||
|
|
||||||
- name: Push changes # push the output folder to your repo
|
- 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
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user