forked from danielmiessler/SecLists
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request danielmiessler#817 from ItsIgnacioPortal/master
Fix github action "Wordlist Updater - Awesome list of secrets in environment variables"
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,25 +5,36 @@ on: | |
- cron: '0 0 1 * *' # once a month at midnight (thanks https://crontab.guru) | ||
|
||
jobs: | ||
update_combined_words: | ||
update_awesome-environment-variable-names: | ||
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 [email protected]: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 "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Check git status and save to output | ||
id: myoutputs | ||
run: | | ||
git status | ||
echo "::set-output name=gitstatus::$(git status --porcelain)" | ||
- name: Commit changed files | ||
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 != '' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|