[Bug] Adjust build-release CLI and fix links when generating security docs (#3434)

* removed historical argument; added setup string; fixed links

* fixing flake errors

* added types for command arguments

* adjusted get_release_diff to append strings for release tags

* set fetch-depth to 0 for integrations checkout in workflow

* changed the name of the workflow

* removed TODOs

* adjusted release docs workflow to remove prefix for release tags

* adjusted URL replacement only if pointed to docs site

* added elastic website to regex pattern

* add docstrings; adjusted regex; add note for stopgap

* added a note about the regex pattern for elastic URLs
This commit is contained in:
Terrance DeJesus
2024-02-12 10:08:06 -05:00
committed by GitHub
parent 298d1bce0d
commit 06b97ec79b
5 changed files with 45 additions and 25 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ jobs:
env:
UPDATE_MESSAGE: ${{ github.event.inputs.update_message }}
REGISTRY_VERSION: ${{ github.event.inputs.post_version }}
PRE_VERSION: "integration-v${{ github.event.inputs.pre_version }}"
POST_VERSION: "integration-v${{ github.event.inputs.post_version }}"
PRE_VERSION: ${{ github.event.inputs.pre_version }}
POST_VERSION: ${{ github.event.inputs.post_version }}
run: |
cd detection-rules
python -m detection_rules dev build-integration-docs $REGISTRY_VERSION \
+2 -1
View File
@@ -1,4 +1,4 @@
name: release-fleet
name: Release Fleet
on:
workflow_dispatch:
inputs:
@@ -71,6 +71,7 @@ jobs:
token: ${{ secrets.READ_WRITE_RELEASE_FLEET }}
repository: ${{github.event.inputs.target_repo}}
path: integrations
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v2