-
-
Notifications
You must be signed in to change notification settings - Fork 587
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 #1650 from blacklanternsecurity/dev
Dev --> Stable (2.01)
- Loading branch information
Showing
53 changed files
with
1,689 additions
and
999 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 |
---|---|---|
|
@@ -28,8 +28,9 @@ jobs: | |
response = requests.get('https://api.github.com/repos/projectdiscovery/nuclei/releases/latest') | ||
version = response.json()['tag_name'].lstrip('v') | ||
release_notes = response.json()['body'] | ||
os.system(f"echo 'latest_version={version}' >> $GITHUB_ENV") | ||
os.system(f"echo 'release_notes={release_notes}' >> $GITHUB_ENV") | ||
with open(os.getenv('GITHUB_ENV'), 'a') as env_file: | ||
env_file.write(f"latest_version={version}\n") | ||
env_file.write(f"release_notes<<EOF\n{release_notes}\nEOF\n") | ||
shell: python | ||
- name: Get current version | ||
id: get-current-version | ||
|
@@ -44,13 +45,13 @@ jobs: | |
if: steps.update-version.outcome == 'success' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | ||
commit-message: "Update nuclei" | ||
title: "Update nuclei to ${{ env.latest_version }}" | ||
body: | | ||
This PR uses https://api.github.com/repos/projectdiscovery/nuclei/releases/latest to obtain the latest version of nuclei and update the version in bbot/modules/deadly/nuclei.py." | ||
Release notes: | ||
# Release notes: | ||
${{ env.release_notes }} | ||
branch: "update-nuclei" | ||
committer: GitHub <[email protected]> | ||
|
@@ -78,8 +79,9 @@ jobs: | |
response = requests.get('https://api.github.com/repos/trufflesecurity/trufflehog/releases/latest') | ||
version = response.json()['tag_name'].lstrip('v') | ||
release_notes = response.json()['body'] | ||
os.system(f"echo 'latest_version={version}' >> $GITHUB_ENV") | ||
os.system(f"echo 'release_notes={release_notes}' >> $GITHUB_ENV") | ||
with open(os.getenv('GITHUB_ENV'), 'a') as env_file: | ||
env_file.write(f"latest_version={version}\n") | ||
env_file.write(f"release_notes<<EOF\n{release_notes}\nEOF\n") | ||
shell: python | ||
- name: Get current version | ||
id: get-current-version | ||
|
@@ -94,13 +96,13 @@ jobs: | |
if: steps.update-version.outcome == 'success' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | ||
commit-message: "Update trufflehog" | ||
title: "Update trufflehog to ${{ env.latest_version }}" | ||
body: | | ||
This PR uses https://api.github.com/repos/trufflesecurity/trufflehog/releases/latest to obtain the latest version of trufflehog and update the version in bbot/modules/trufflehog.py. | ||
Release notes: | ||
# Release notes: | ||
${{ env.release_notes }} | ||
branch: "update-trufflehog" | ||
committer: GitHub <[email protected]> | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.