diff --git a/.github/workflows/lock-versions.yml b/.github/workflows/lock-versions.yml index 3f546f622..6547292b9 100644 --- a/.github/workflows/lock-versions.yml +++ b/.github/workflows/lock-versions.yml @@ -37,15 +37,22 @@ jobs: pip cache purge pip install .[dev] - - name: Build release package + - name: Build release package with navigator files run: | - python -m detection_rules dev build-release + python -m detection_rules dev build-release --generate-navigator - name: Set github config run: | git config --global user.email "72879786+protectionsmachine@users.noreply.github.com" git config --global user.name "protectionsmachine" + - name: Update navigator gist files and docs-dev/ATT&CK-coverage.md file. + env: + GITHUB_TOKEN: "${{ secrets.WRITE_TRADEBOT_GIST_TOKEN }}" + run: | + python -m detection_rules dev update-navigator-gists --update-coverage + git add docs-dev/"ATT\&CK-coverage.md" + - name: Lock the versions env: BRANCHES: "${{github.event.inputs.branches}}" @@ -65,7 +72,8 @@ jobs: title: 'Lock versions for releases: ${{github.event.inputs.branches}}' body: | Lock versions for releases: ${{github.event.inputs.branches}}. - + Update ATT&CK coverage URL(s) in docs-dev/ATT&CK-coverage.md + - Autogenerated from job `lock-versions: pr`. labels: "backport: auto"