Skip to content

Commit 3ec27ad

Browse files
authored
security(cicd): Pinned dependency versions and extract 2 unsafe expressions to env vars (PR #1297)
1 parent fc95bad commit 3ec27ad

8 files changed

Lines changed: 13 additions & 8 deletions

.github/workflows/readme-updater.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929
else
3030
echo "[+] Files were changed! Pushing changed..."
3131
git add -A
32-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
32+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY"
3333
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
3434
git config --local user.name "github-actions[bot]"
3535
git commit -m "[Github Action] Automated readme update."
3636
git push
3737
fi
3838
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/remote-wordlists-updater.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ jobs:
3535
git add --renormalize -A && git add -A
3636
chmod +x ./.bin/brute-force-renormalize.sh
3737
./.bin/brute-force-renormalize.sh ./Discovery/Web-Content/trickest-robots-disallowed-wordlists/top-10000.txt
38-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
38+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY"
3939
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
4040
git config --local user.name "github-actions[bot]"
4141
git commit -m "[Github Action] Automated trickest wordlists update."
4242
git push
4343
fi
44+
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/wordlist-updater_api-endpoints-res.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Commit changed files
3333
run: git commit -m "[Github Action] Updated api-endpoints-res.txt"
3434
- name: Push changes # push the output folder to your repo
35-
uses: ad-m/github-push-action@master
35+
uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 # master
3636
with:
3737
github_token: ${{ secrets.GITHUB_TOKEN }}
3838
force: true

.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Push changes # push the output folder to your repo
3737
if: steps.myoutputs.outputs.gitstatus != ''
38-
uses: ad-m/github-push-action@master
38+
uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 # master
3939
with:
4040
github_token: ${{ secrets.GITHUB_TOKEN }}
4141
force: true

.github/workflows/wordlist-updater_combined_directories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Commit changed files
3838
run: git commit -m "[Github Action] Updated combined_directories.txt"
3939
- name: Push changes # push the output folder to your repo
40-
uses: ad-m/github-push-action@master
40+
uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 # master
4141
with:
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
4343
force: true

.github/workflows/wordlist-updater_combined_words.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Commit changed files
3434
run: git commit -m "[Github Action] Updated combined_words.txt"
3535
- name: Push changes # push the output folder to your repo
36-
uses: ad-m/github-push-action@master
36+
uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 # master
3737
with:
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
3939
force: true

.github/workflows/wordlist-updater_default-passwords.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Commit changed files
4747
run: git commit -m "[Github Action] Updated default-passwords.txt"
4848
- name: Push changes
49-
uses: ad-m/github-push-action@master
49+
uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 # master
5050
with:
5151
github_token: ${{ secrets.GITHUB_TOKEN }}
5252
force: true

.github/workflows/wordlist-updater_fuzzing_etc_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Push changes # push the output folder to your repo
4545
if: steps.myoutputs.outputs.gitstatus != ''
46-
uses: ad-m/github-push-action@master
46+
uses: ad-m/github-push-action@4cc74773234f74829a8c21bc4d69dd4be9cfa599 # master
4747
with:
4848
github_token: ${{ secrets.GITHUB_TOKEN }}
4949
force: true

0 commit comments

Comments
 (0)