-
Notifications
You must be signed in to change notification settings - Fork 180
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
Auto Generated Indexes v2 #1472
Conversation
@mbellifa this is awesome! Would it make sense to also include the rule descriptions in the indexes? |
@arielkr256 Good point, I updated the PR to add descriptions. You can see what it looks like in my little test fork: https://github.com/mbellifa/panther-analysis-test/blob/auto-indexes-run-fix/indexes/alpha-index.md |
.github/workflows/release.yml
Outdated
@@ -4,14 +4,14 @@ on: | |||
workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbellifa after discussing with the team I think it would be better to run this in a separate GHA that runs on PRs to develop
vs adding it to the release workflow. This will ensure develop stays in sync with main and let us test it more thoroughly prior to each release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arielkr256 Would a workflow that triggered on a push to develop work? I'm thinking of using a filter that only runs when .yml files are changed so it doesn't loop. My concern with PRs is I'm reading that they can have different behavior/permission issues when a PR is opened from a fork, and I can envision increased merge conflicts if the indexes are built within the PRs themselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think that sounds great!
…cutting flow * Updated Panther Bot username/email * Sorted headings for standard rules so files remain stable if there are no changes
@arielkr256 @le4ker I've updated this to work as a separate flow that fires on push instead of hooking into the release flow. Let me know what you think. |
This is a non fork version of #1465, description copied below:
Background
Previously we generated the data for the Detection Coverage page manually. These changes aim to automate this generation as well as the markdown indexes in the
/indexes/
folder.Changes
detection-coverage.json
and markdown indexes when a release is cut, which is then written back to the repo.Testing