Skip to content

Commit

Permalink
ci: web: rules: deep checkout so we can get rule history
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Aug 22, 2024
1 parent 07af410 commit 5d585ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 1
# full depth so that capa-rules has a full history
# and we can construct a timeline of rule updates.
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
Expand Down
3 changes: 2 additions & 1 deletion web/rules/scripts/build_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def convert_yaml_to_html(timestamps, yaml_file: Path, output_dir: Path):
if not line:
continue
if line.startswith("==="):
continue
continue

path, _, timestamp = line.partition(" ")
timestamps[path] = timestamp

Expand Down

0 comments on commit 5d585ac

Please sign in to comment.