Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test merge process #1164

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .bandit

This file was deleted.

3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.github/CODEOWNERS merge=ours
global_helpers/panther_config_overrides.py merge=ours
CODEOWNERS merge=ours
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

# These owners will be the default owners for everything in the repo.

* @panther-labs/detections @panther-labs/threat-research
* @panther-labs/detections
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ updates:
schedule:
interval: "weekly"
open-pull-requests-limit: 0
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
5 changes: 0 additions & 5 deletions .github/pull.yml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/check-packs.yml

This file was deleted.

12 changes: 7 additions & 5 deletions .github/workflows/lint.yml → .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

on:
pull_request:
on: pull_request

jobs:
lint:
name: Lint
make_lint:
name: lint and test
runs-on: ubuntu-latest

steps:
- name: Checkout panther-analysis
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Set python version
uses: actions/setup-python@v4
Expand All @@ -42,3 +41,6 @@ jobs:

- name: make lint
run: make lint

- name: make test
run: make test
41 changes: 0 additions & 41 deletions .github/workflows/release.yml

This file was deleted.

20 changes: 9 additions & 11 deletions .github/workflows/sync-from-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: sync-panther-analysis-from-upstream

on:
schedule:
# 15:00Z, every Wednesday
- cron: "00 15 * * 3"
# 15:00Z, every Tuesday
- cron: "00 15 * * 2"
workflow_dispatch: # or on button click

env:
Expand All @@ -15,7 +15,7 @@ jobs:
github.repository != 'panther-labs/panther-analysis'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
- uses: actions/github-script@v6
id: set_upstream
name: Check Upstream
with:
Expand All @@ -29,18 +29,17 @@ jobs:
process.env['GITHUB_OUTPUT'],
'latest-release=' + upstreamLatest.data.tag_name + '\n');
## CREATE A BRANCH
- uses: peterjgrainger/action-create-branch@v3.0.0
- uses: peterjgrainger/action-create-branch@v2.3.0
id: create_a_branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'sync_upstream_${{steps.set_upstream.outputs.latest-release}}'
# Checkout this repo into the branch
- name: Checkout your local repo in PR branch
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
ref: 'sync_upstream_${{steps.set_upstream.outputs.latest-release}}'
token: ${{ secrets.GITHUB_TOKEN }}
# Sync this branch with upstream
- name: Sync upstream changes into PR branch
id: sync
Expand All @@ -55,10 +54,9 @@ jobs:
# change the usptream_sync_branch to master
upstream_sync_branch: ${{steps.set_upstream.outputs.latest-release}}
upstream_sync_repo: panther-labs/panther-analysis
#test_mode: true
upstream_pull_args: '--allow-unrelated-histories'
#test_mode: true
# Create a PR from this branch back to this fork's primary branch
- uses: actions/github-script@v7
- uses: actions/github-script@v6
id: create_pr
name: Create a PR to bring upstream changes into the local repo primary branch
if: steps.sync.outputs.has_new_commits == 'true'
Expand All @@ -75,11 +73,11 @@ jobs:
base: '${{env.YOUR_REPO_PRIMARY_BRANCH_NAME}}',
});
} catch(e) {
if (e.response && e.response.data && e.response.data.errors && e.response.data.errors.length > 0 && e.response.data.errors[0].message && e.response.data.errors[0].message.includes('No commits between')) {
if (e.response.data.errors[0].message.includes('No commits between')) {
fs.appendFileSync(
process.env['GITHUB_OUTPUT'],
'pr_state=no-updates\n');
} else if (e.response && e.response.data && e.response.data.errors && e.response.data.errors.length > 0 && e.response.data.errors[0].message && e.response.data.errors[0].message.includes('A pull request already exists for')) {
} else if (e.response.data.errors[0].message.includes('A pull request already exists for')) {
fs.appendFileSync(
process.env['GITHUB_OUTPUT'],
'pr_state=update-pr-already-exists\n');
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/test.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/upload.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/validate.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .pylintrc

This file was deleted.

Loading
Loading