mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-08-12 16:57:40 +00:00
Merge pull request #1015 from ItsIgnacioPortal/GithubActions
fix(CICD): Corrected multiple issues in GitHub Actions workflows
This commit is contained in:
@@ -10,6 +10,8 @@ jobs:
|
|||||||
|
|
||||||
update-readme:
|
update-readme:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
@@ -28,8 +30,8 @@ jobs:
|
|||||||
echo "[+] Files were changed! Pushing changed..."
|
echo "[+] Files were changed! Pushing changed..."
|
||||||
git add -A
|
git add -A
|
||||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
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.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
git commit -m "[Github Action] Automated readme update."
|
git commit -m "[Github Action] Automated readme update."
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-files:
|
update-files:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -25,8 +27,8 @@ jobs:
|
|||||||
echo "[+] Files were changed! Pushing changed..."
|
echo "[+] Files were changed! Pushing changed..."
|
||||||
git add --renormalize -A && git add -A
|
git add --renormalize -A && git add -A
|
||||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
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.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
git commit -m "[Github Action] Automated trickest wordlists update."
|
git commit -m "[Github Action] Automated trickest wordlists update."
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
|
|||||||
+2
-2
@@ -20,8 +20,8 @@ jobs:
|
|||||||
|
|
||||||
- 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 "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
|
|
||||||
- name: Check git status and save to output
|
- name: Check git status and save to output
|
||||||
id: myoutputs
|
id: myoutputs
|
||||||
|
|||||||
@@ -3,36 +3,36 @@ name: Wordlist Updater - directories
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'Discovery/Web-Content/raft-small-directories.txt'
|
- 'Discovery/Web-Content/raft-small-directories.txt'
|
||||||
- 'Discovery/Web-Content/raft-small-directories-lowercase.txt'
|
- 'Discovery/Web-Content/raft-small-directories-lowercase.txt'
|
||||||
- 'Discovery/Web-Content/directory-list-2.3-small.txt'
|
- 'Discovery/Web-Content/directory-list-2.3-small.txt'
|
||||||
- 'Discovery/Web-Content/raft-medium-directories-lowercase.txt'
|
- 'Discovery/Web-Content/raft-medium-directories-lowercase.txt'
|
||||||
- 'Discovery/Web-Content/raft-medium-directories.txt'
|
- 'Discovery/Web-Content/raft-medium-directories.txt'
|
||||||
- 'Discovery/Web-Content/directory-list-2.3-medium.txt'
|
- 'Discovery/Web-Content/directory-list-2.3-medium.txt'
|
||||||
- 'Discovery/Web-Content/apache.txt '
|
- 'Discovery/Web-Content/apache.txt'
|
||||||
- 'Discovery/Web-Content/directory-list-2.3-big.txt'
|
- 'Discovery/Web-Content/directory-list-2.3-big.txt'
|
||||||
- 'Discovery/Web-Content/raft-large-directories-lowercase.txt'
|
- 'Discovery/Web-Content/raft-large-directories-lowercase.txt'
|
||||||
- 'Discovery/Web-Content/raft-large-directories.txt '
|
- 'Discovery/Web-Content/raft-large-directories.txt'
|
||||||
- 'Discovery/Web-Content/directory-list-1.0.txt'
|
- 'Discovery/Web-Content/directory-list-1.0.txt'
|
||||||
- 'Discovery/Web-Content/combined_words.txt'
|
- 'Discovery/Web-Content/combined_words.txt'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_combined_words:
|
update_combined_directories:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Generate combined_directories.txt
|
- 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
|
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
|
- 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
|
- name: Check for changes
|
||||||
run: git status
|
run: git status
|
||||||
- name: Stage changed files
|
- name: Stage changed files
|
||||||
run: git add Discovery/Web-Content/combined_directories.txt
|
run: git add Discovery/Web-Content/combined_directories.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 "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
- name: Commit changed files
|
- name: Commit changed files
|
||||||
run: git commit -m "[Github Action] Updated combined_directories.txt"
|
run: git commit -m "[Github Action] Updated combined_directories.txt"
|
||||||
- name: Push changes # push the output folder to your repo
|
- name: Push changes # push the output folder to your repo
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ name: Wordlist Updater - words
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'Discovery/Web-Content/common.txt'
|
- 'Discovery/Web-Content/common.txt'
|
||||||
- 'Discovery/Web-Content/raft-small-words.txt'
|
- 'Discovery/Web-Content/raft-small-words.txt'
|
||||||
- 'Discovery/Web-Content/raft-small-words-lowercase.txt'
|
- 'Discovery/Web-Content/raft-small-words-lowercase.txt'
|
||||||
- 'Discovery/Web-Content/raft-medium-words-lowercase.txt'
|
- 'Discovery/Web-Content/raft-medium-words-lowercase.txt'
|
||||||
- 'Discovery/Web-Content/raft-medium-words.txt'
|
- 'Discovery/Web-Content/raft-medium-words.txt'
|
||||||
- 'Discovery/Web-Content/big.txt'
|
- 'Discovery/Web-Content/big.txt'
|
||||||
- 'Discovery/Web-Content/raft-large-words-lowercase.txt'
|
- 'Discovery/Web-Content/raft-large-words-lowercase.txt'
|
||||||
- 'Discovery/Web-Content/raft-large-words.txt'
|
- 'Discovery/Web-Content/raft-large-words.txt'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_combined_words:
|
update_combined_words:
|
||||||
@@ -20,15 +20,15 @@ jobs:
|
|||||||
- name: Generate combined_words.txt
|
- 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
|
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
|
- 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
|
- name: Check for changes
|
||||||
run: git status
|
run: git status
|
||||||
- name: Stage changed files
|
- name: Stage changed files
|
||||||
run: git add Discovery/Web-Content/combined_words.txt
|
run: git add Discovery/Web-Content/combined_words.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 "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
- name: Commit changed files
|
- name: Commit changed files
|
||||||
run: git commit -m "[Github Action] Updated combined_words.txt"
|
run: git commit -m "[Github Action] Updated combined_words.txt"
|
||||||
- name: Push changes # push the output folder to your repo
|
- name: Push changes # push the output folder to your repo
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ jobs:
|
|||||||
|
|
||||||
- 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 "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
|
|
||||||
- name: Check git status and save to output
|
- name: Check git status and save to output
|
||||||
id: myoutputs
|
id: myoutputs
|
||||||
|
|||||||
Reference in New Issue
Block a user