forked from BC-SECURITY/Empire
-
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 branch 'BC-SECURITY:main' into master
- Loading branch information
Showing
1,963 changed files
with
166,435 additions
and
90,519 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Git | ||
.git | ||
**.git | ||
.gitignore | ||
.github | ||
|
||
# CI | ||
.codeclimate.yml | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: 🐞 Bug | ||
description: File a bug/issue | ||
title: "[BUG] <title>" | ||
labels: ["bug"] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Empire Version | ||
description: What version of Empire are you using? | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Python Version | ||
description: What version of Python are you using? | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Operating System | ||
description: What operating system are you using? | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Database | ||
description: What database are you using? | ||
options: | ||
- SQLite | ||
- MySQL | ||
- MariaDB | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A concise description of what you're experiencing. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. In this environment... | ||
1. With this config... | ||
1. Run '...' | ||
1. See error... | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Anything else? | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: false |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 🚀 Feature Request | ||
description: File a bug/issue | ||
title: "[FEATURE REQUEST] <title>" | ||
labels: ["enhancement"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Solution | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Alternatives | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context or screenshots about the feature request here. | ||
validations: | ||
required: false |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 'Clean Merge' | ||
description: 'Merge a branch into another branch without creating a merge commit. Fail if the merge would create merge conflicts.' | ||
inputs: | ||
from-branch: | ||
description: 'The branch to merge from' | ||
required: true | ||
to-branch: | ||
description: 'The branch to merge to' | ||
required: true | ||
push-repo: | ||
description: 'The remote to push to' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout ${{ inputs.to-branch }} | ||
shell: bash | ||
run: | | ||
git checkout ${{ inputs.to-branch }} | ||
# reset submodules https://gist.github.com/nicktoumpelis/11214362 | ||
git clean -xfd | ||
git submodule foreach --recursive git clean -xfd | ||
git reset --hard | ||
git submodule foreach --recursive git reset --hard | ||
git submodule update --init --recursive | ||
- name: Merge ${{ inputs.from-branch }} branch to ${{ inputs.to-branch }} | ||
shell: '/bin/bash {0}' | ||
run: | | ||
git merge --no-edit ${{ inputs.from-branch }} | ||
if [ $? -ne 0 ]; then | ||
echo "Merge failed. Aborting. This is likely caused by a conflict and the merge must be done manually." | ||
exit 1 | ||
fi | ||
git diff ${{ inputs.push-repo }}/${{ inputs.to-branch }} --exit-code --quiet | ||
if [ $? -eq 0 ]; then | ||
echo "No changes needed to merge." | ||
echo "MERGE_STATUS=NO_CHANGES" >> $GITHUB_ENV | ||
else | ||
echo "Changes needed to merge." | ||
echo "MERGE_STATUS=CHANGES" >> $GITHUB_ENV | ||
fi | ||
exit 0 | ||
- name: Push ${{ inputs.to-branch }} to GitHub | ||
if: ${{ env.MERGE_STATUS == 'CHANGES' }} | ||
shell: bash | ||
run: | | ||
git push ${{ inputs.push-repo }} ${{ inputs.to-branch }} | ||
echo "MERGE_STATUS=NO_CHANGES" >> $GITHUB_ENV |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 'Update Starkiller' | ||
description: 'Updates the config.yaml to the specified version and commits the change.' | ||
inputs: | ||
starkiller-version: | ||
description: 'The starkiller ref to use' | ||
required: true | ||
app-version: | ||
description: 'The changelog section to update' | ||
required: true | ||
repo: | ||
description: "The starkiller repo to use. If not set, doesn't update the field." | ||
required: false | ||
changelog-path: | ||
description: "The changelog path" | ||
default: CHANGELOG.md | ||
runs: | ||
using: "composite" | ||
steps: | ||
# This is technically only needed for the first time we update the public repo, as a bootstrap. | ||
# After that, the submodule is already initialized to the right repo. | ||
- name: Update config.yaml repo | ||
if: ${{ inputs.repo }} | ||
shell: bash | ||
run: | | ||
sed -i "s|repo:.*|repo: ${{ inputs.repo }}|" empire/server/config.yaml | ||
- name: Update config.yaml ref | ||
shell: bash | ||
# this depends on there not being any other keys in the config named ref | ||
# if there are, this will break. We could be safer to load/dump the yaml, | ||
# but would lose the comments. | ||
run: | | ||
sed -i "s/ref: .*/ref: ${{ inputs.starkiller-version }}/" empire/server/config.yaml | ||
- name: Update changelog | ||
shell: bash | ||
run: | | ||
sed -i '/## \[${{ inputs.app-version }}\]/a - Updated Starkiller to ${{ inputs.starkiller-version }}' ${{ inputs.changelog-path }} | ||
- name: Commit changes | ||
shell: bash | ||
run: | | ||
git add -A | ||
git commit --message "Update starkiller version to ${{ inputs.starkiller-version }}" |
Oops, something went wrong.