Skip to content

Commit b4177db

Browse files
authored
Merge pull request #44 from niaid/f/fix-rule-pack-info-generator
Fix rule pack info generation
2 parents 13c7ed6 + 19a2628 commit b4177db

10 files changed

+519
-544
lines changed

.github/workflows/update-rule-pack-info.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/update-rules.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
run: |
2121
cd scripts
2222
pip install -r requirements.txt
23-
python index.py
23+
python index.py update-config-rules
24+
python index.py update-rule-packs
2425
2526
- name: Get changed files
2627
id: changed-files
2728
uses: tj-actions/changed-files@v44
2829
with:
29-
files: "*.tf"
30+
files: |
31+
"*.tf"
32+
"files/*"
3033
3134
- name: List all changed files
3235
run: echo '${{ steps.changed-files.outputs.all_changed_files }}'
@@ -64,7 +67,9 @@ jobs:
6467
token: ${{ secrets.GITHUB_TOKEN }}
6568
base: main
6669
branch: auto-update-aws-config-rules
67-
add-paths: managed_rules_*.tf
70+
add-paths: |
71+
managed_rules_*.tf
72+
files/*
6873
commit-message: Automatic updates to AWS managed Config Rules
6974
delete-branch: true
7075
title: '[Auto] Update AWS Config Rules'

files/pack-rules-list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ Security-Best-Practices-for-Network-Firewall
102102
Security-Best-Practices-for-RDS
103103
Security-Best-Practices-for-Redshift
104104
Security-Best-Practices-for-SageMaker
105-
Security-Best-Practices-for-Secrets-Manager
105+
Security-Best-Practices-for-Secrets-Manager

0 commit comments

Comments
 (0)