Commit Graph

60 Commits

Author SHA1 Message Date
Mika Ayenson 40eff15fbe Update manual-backport.yml (#2639) 2023-03-09 14:42:09 -07:00
Mika Ayenson 0a637a3d86 Update manual-backport.yml (#2638) 2023-03-09 14:09:59 -07:00
Mika Ayenson 2b7d249125 Update manual-backport.yml (#2637) 2023-03-09 15:31:44 -05:00
Mika Ayenson 73555c737d Update manual-backport.yml (#2636) 2023-03-09 15:11:07 -05:00
Mika Ayenson 41ca459532 Update manual-backport.yml (#2635) 2023-03-09 14:15:12 -05:00
Terrance DeJesus 9cb7123a72 [FR] Add enhancements to release-fleet workflow (#2612)
* added commit hash option

* adjusted commit hash if expression

* add step to retrieve latest locked versions commit; set default

* added change directory to lock versions retrieval

* added echo output

* removed attempt to dynamically pull commit

* added create release tag

* added capability to dynamically create release tag

* adjusted version parsing and reference

* fixed misspelling for packages.yml file

* adjusted the regex pattern for release tag

* added another job to check commit hash

* removed set env variable in check-commit job

* adjusted check commit hash steps

* fixed job references

* adjusted job references for fleet-pr

* checking inverse if statement for second job

* changed how check message is stored

* reverting change for job check

* adjusted check commit step

* adjusted if statement in check_commit step

* added default value for check_commit variable

* removed unecessary step in check-commit job

* added else statement to github actions

* changed output name

* set default output

* testing without if statement

* testing without grep statement

* added environment variable

* testing commit message variable

* changing condition statement

* trying to call environment variable differently

* added more steps to abstract functionality

* reverted changes

* removed bug
2023-03-08 17:34:31 -05:00
Terrance DeJesus 66a0cbb5de [Bug] Fix release-* Github Workflows and Review integrations-pr command (#2605)
* testing order of operations in workflow

* reverted testing order; adjusting secrets token

* adjusting secrets token

* changing checkout to v3

* removed token for testing workflow

* changed repo reference

* changing secret token

* reverting token changes

* removing master reference

* adjusted elastic-package installation

* changed path of integrations during install

* added integrations fetch run commands

* changed target branch to main, setup latest go

* changed token back to protections machine

* trying different secret for integrations PR creation

* created testing token for permission errors

* adjusted 'bump-pkg-versions' so minors are bumped if no previous pkg

* added bumping package versions as a step

* updated actions/upload-artifact to v3

* removed inaccurate comments; removed release-kibana workflow

* adjusted sequence of steps to bump packge version before build

* added a bump to major if it does not match packages.yml
2023-03-01 10:43:16 -05:00
Mika Ayenson fd0120d98b [FR] Use Read token on branch status checks (#2598) 2023-02-24 09:17:07 -05:00
Terrance DeJesus 8a7ad13611 [FR] 8.7 Release Preparation and Update Main Branch to 8.8 (#2533)
* adding preparations for 8.8 release

* addressed flake single new line error

* froze and updated API schemas

* updated get_intregration_manifests

* adjusted boolean in find_latest_integration_version
2023-02-08 17:27:21 -05:00
Mika Ayenson 5bf69b7967 Update package and install process (#1948) 2022-12-08 15:49:49 -05:00
Terrance DeJesus 57b8f630de initial commit with changes for 8.7 branch creation (#2406) 2022-11-21 12:55:01 -05:00
Terrance DeJesus facaef1389 Prep for 8.6 Branch Creation (#2308)
* adding prep for 8.6

* updated ecs and beats packages

* addressed flake errors
2022-09-21 17:01:02 -04:00
Mika Ayenson 8e240f9e79 [Bug] Add ready_for_review to backport activity types (#2312) 2022-09-21 14:22:27 -04:00
Mika Ayenson c2e7011ec6 break out the logic to a script and manual workflow (#1908)
* Break out the logic to a script and manual workflow with an option to skip staging files
2022-09-16 13:34:04 -04:00
Mika Ayenson e7a1afbba0 only run on pull request (#2237) 2022-08-09 21:21:30 -04:00
Terrance DeJesus 2a3b584433 Prep for 8.5 branch (#2220)
* adding first commit

* renamed branch

* adjusted packages, stack schema and updated schemas

* updated integrations manifest

* adjusted comments to be a little more organized

* adjusted stack-schema-map

* refreshed ecs and beats schema, adjusted stack schema map accordingly
2022-08-09 17:14:42 -04:00
Mika Ayenson 73584407d7 [Bug] Opening Issues in this Repo Causes "Run failed: Community - main" (#2214)
* use ghv6 and catch errors
2022-08-03 14:36:08 -04:00
Mika Ayenson 3f6be4155c test automatically prevent future merges when a backport fails (#1909)
automatically prevent future merges when a backport fails
2022-06-23 15:10:26 -04:00
Mika Ayenson 4fdd978183 test automatically prevent future merges when a backport fails (#1909)
automatically prevent future merges when a backport fails
2022-06-23 14:59:25 -04:00
Terrance DeJesus 35b1a69ff5 Prep for Creation of 8.4 Branch (#2001)
* prepping for 8.4 branch

* adjusted schemas init file

* adjusted target matrix to only backport to 7.16, updated api schemas

* adjusted the lock-versions workflow to account for 7.16 and up support only

* Add test for version lock to schema map correlation

* decouple from static 7.13 references

* keep patch version for lock

* Update detection_rules/etc/packages.yml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

Co-authored-by: Jonhnathan <jonhnathancesar@gmail.com>
Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com>
2022-06-02 14:59:18 -04:00
Mika Ayenson 6219fc06b9 Move etc under detection_rules (#1885)
* Move etc directory under detection_rules
* Prepend original `etc` path with `detection_rules`
* Update docstrings in util and CODEOWNERS
* Add resiliency to tags to account for the old directory structure
* Bug fix: remove unused param caused by commit 6ed1a39efe

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
2022-05-02 10:11:21 -04:00
Terrance DeJesus 648daf1237 Prep for Creation of 8.3 Branch (#1906)
* updating with changes for 8.3 prep
* adding updates
* adjusted version in packages.yml
2022-04-01 13:33:18 -08:00
Justin Ibarra 6653acb21c [Github Workflows] Only generate navigator files on push to main (#1814)
* [Github Workflows] Only generate navigator files on push to main

* fix workflow logic syntax
2022-03-04 09:55:11 -09:00
Justin Ibarra 254b4eb23f Generate ATT&CK navigator layer files and links (#1787)
* Generate attack layer files and build with package
* add update-navigator-gists command
* add workflow to update navigator gists on pushes to main
* Add coverage readme
* fix keys for links
* update navigator layer names
* purge gist files prior to update; add badge
* Update how the navigator links are displayed
* moved navigator code to dedicated and refactored to dataclasses
* convert gist links to permalink versions
* alphabetize; catch 404 for gist update
2022-03-04 08:20:44 -09:00
Colson Wilhoit e0dda91f26 Prep for creation of 8.2 branch (#1762) 2022-02-08 18:43:55 -09:00
Justin Ibarra f7d93e20d4 fix bug in yaml parsing for github workflows (#1725)
* fix bug in yaml parsing for github workflows

* fix kibana version
2022-01-25 18:56:29 -09:00
Justin Ibarra 2e78da5c9a Prepare for creation of 8.1 branch (#1700) 2022-01-25 18:11:59 -09:00
Justin Ibarra 95d7e9b6f5 Prepare for creation of 7.16 release branch (#1611) 2021-11-15 09:39:34 -09:00
github-actions[bot] 58a4483222 Lock versions for releases: 7.13,7.14,7.15 (#1474)
* Locked versions for releases: 7.13,7.14,7.15
* remove extra previous sections
* add backport label to workflow
2021-09-07 12:32:40 -08:00
Ross Wolf c395d799b4 [CI] Notify slack on backport failure (#1468) 2021-09-01 06:47:48 -06:00
Justin Ibarra 2a7d036443 [Bug] Community label: use getMembershipForUser (#1469)
Use getMembershipForUser to determine the proper org membership status
2021-08-31 21:32:30 -08:00
Ross Wolf 7b8b18cb20 Update main to point to 7.16 (#1457)
* Update main to point to 7.16
* Add 7.16 -> 7.15 migration
* Update stack-schema-map
* Update conditions.kibana.version
2021-08-26 14:23:55 -06:00
Ross Wolf 4adad703fc [CI] Add GitHub actions workflow to lock versions across branches (#1456)
* Start job to lock versions
* Update lock-versions workflow
* Call lock-multiple script
* Fix script
* Add the lock file to staging
* pass branches to the job
* Fetch all branches and tags
* Push the branch first
* Push with upstream
* Change PR params
* Remove protections machine token
* Add 7.14.0 to the lock for min_stack_version=7.14.0
* Fix branch prefix
* Add trailing newline
* Trailing newline
* Restrict to main branch
2021-08-26 14:17:34 -06:00
Justin Ibarra 4a3bacae48 Remove labeling from community workflow (#1432) 2021-08-14 02:43:34 -08:00
Justin Ibarra f63a72f1ac Add revised workflow for community label (#1431) 2021-08-14 02:18:53 -08:00
Justin Ibarra 006cb0e702 Add label workflow for community issues and pulls (#1406)
* Add label workflow for community issues and pulls
* run on label changes
2021-08-13 22:36:59 -08:00
Ross Wolf 2e8f7cd13f [CI] Add missing clone for Fleet on-demand job (#1387) 2021-07-27 16:55:28 -06:00
Ross Wolf 809c06ad5f Add 7.14 to the list of target backport branches (#1341) 2021-07-14 16:29:23 -06:00
Ross Wolf 77c23da1db [CI] Publish to integrations from on-demand job (#1340)
* Add command to publish integrations PR
* Add workflow_dispatch job to publish package
* Get working directory dynamically
* Fix the repo settings
* Get the absolute path for local-repo
* Filter out 'main' branch
* Update the description for target_branch
* Fix workflow definition
* Move 'if' into job
* Update ref format
* Remove unnecessary E501 suppression
* Add a link to the full commit hash
* s/partial_args/prefix_args
2021-07-14 16:19:41 -06:00
Ross Wolf 1e6e5ef0a0 [CI] Update backport job to filter out incompatible rules (#1332)
* Update backport job to filter out incompatible rules
* Make $NEEDS_BACKPORT more honest
2021-07-12 14:41:48 -06:00
Ross Wolf 5b0f72ffc3 [CI/CD] Create on-demand job to release from Kibana (#1334)
* Add on-demand job to release to Kibana
* Update the inputs structure
* Archive the artifacts
2021-07-12 14:34:54 -06:00
Ross Wolf 3120252982 Update the pythonpackage.yml job to only upload artifacts for 'push' (#1322) 2021-07-06 13:40:39 -06:00
Ross Wolf a940c10ead Update backport.yml (#1205) 2021-05-13 16:54:52 -06:00
Ross Wolf 60f5168f07 Retrieve branch history of main in backport job 2021-05-06 23:12:57 -06:00
Ross Wolf 700c63d7d5 Disable persist-credentials from checkout job (#1187)
* Disable persist-credentials from checkout job
* Set the token at the checkout stage
2021-05-06 22:58:31 -06:00
Ross Wolf a33e943591 Use @protectionsmachine to push backports (#1186) 2021-05-06 22:26:30 -06:00
Ross Wolf f3f344018b Fix backport job webhook + push (#1185) 2021-05-06 21:32:40 -06:00
Ross Wolf 2ceb5b52c9 Add job for 'backport: auto' labeled PRs (#1174)
* Add job for 'backport: auto' labeled PRs

* Limit the job to sequential only

* Fix delayed labels and use the right commit

* Add slack webhook integration
2021-05-06 20:03:05 -06:00
Ross Wolf c0af222e7e Move Rule into a dataclass (#1029)
* WIP: Convert Rule to a dataclass
* Fix make release
* Lint fixes
* Remove dead code
* Fix lint and tests
* Use Python 3.8 in GitHub actions
* Update README to 3.8+
* Add Python 3.8 assertion
* Fix is_dirty property
* Remove incorrect pop from contents
* Add mixin with from_dict() and to_dict() methods
* Bypass validation for deprecated rules
* Fix rule_prompt
* Fix dict_hash usage
* Fix rule_event_search
* Switch to definitions.Date
* Fix toml-lint command, ignoring 'unneeded defaults'
* Moved severity Literal to definitions.Severity
* Remove BaseMarshmallowDataclass
* Fix lint and tests
* Add maturity to metadata for rule prompt loop
* Fix typo in devtools
* Use rule loader to load single rule in toml-lint
* Add Schema hint to __schema method
* Add MITREAttackURL definition
* Fix is_dirty to compare sha<-->sha
* Normalize the autoformatted rule output for API and toml-lint
* Make the package hash match
* Make the rule object mutable but not rule contents
* Restore the rules
2021-03-24 10:24:32 -06:00
brokensound77 0ca39df508 remove labeler action files 2021-03-17 19:19:32 -08:00