Added awesome-environment-variable-names.txt and an auto-updater github action

This commit is contained in:
PinkDev1
2022-06-23 21:55:49 -03:00
parent 4eb28683ab
commit baaec330cf
2 changed files with 111 additions and 0 deletions
@@ -0,0 +1,30 @@
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)
jobs:
update_combined_words:
runs-on: ubuntu-latest
steps:
- 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: Commit changed files
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
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true