[Bug] Add --add-historical argument to lock versions workflow (#2739)
* bug fix for lock version workflow * updated all use cases with build-release * added default to add historical * fixed flake errors
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
||||
# only generate the navigator files on push events to main
|
||||
GENERATE_NAVIGATOR_FILES: "${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && '--generate-navigator' || ' ' }}"
|
||||
run: |
|
||||
python -m detection_rules dev build-release $GENERATE_NAVIGATOR_FILES --add-historical 'no'
|
||||
python -m detection_rules dev build-release $GENERATE_NAVIGATOR_FILES
|
||||
|
||||
- name: Archive production artifacts for branch builds
|
||||
uses: actions/upload-artifact@v2
|
||||
|
||||
@@ -83,7 +83,8 @@ def dev_group():
|
||||
@click.option('--update-version-lock', '-u', is_flag=True,
|
||||
help='Save version.lock.json file with updated rule versions in the package')
|
||||
@click.option('--generate-navigator', is_flag=True, help='Generate ATT&CK navigator files')
|
||||
@click.option('--add-historical', type=str, required=True, help='Generate historical package-registry files')
|
||||
@click.option('--add-historical', type=str, required=True, default="no",
|
||||
help='Generate historical package-registry files')
|
||||
def build_release(config_file, update_version_lock: bool, generate_navigator: bool, add_historical: str,
|
||||
release=None, verbose=True):
|
||||
"""Assemble all the rules into Kibana-ready release files."""
|
||||
|
||||
Reference in New Issue
Block a user