mirror of
https://github.com/danielmiessler/SecLists.git
synced 2025-06-13 02:35:01 +00:00
Merge pull request #1015 from ItsIgnacioPortal/GithubActions
fix(CICD): Corrected multiple issues in GitHub Actions workflows
This commit is contained in:
commit
e624daa93f
6
.github/workflows/readme-updater.yml
vendored
6
.github/workflows/readme-updater.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user