mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-17 22:37:54 +00:00
Normalize individual cisagov_*.yml files
Add functionality to the update_software_list workflow to normalize the component files for every push. This will ensure that they are kept in a manner consistent with how the primary cisagov.yml file stores data.
This commit is contained in:
parent
f48ac38c9b
commit
7f11fc634b
1 changed files with 7 additions and 1 deletions
8
.github/workflows/update_software_list.yml
vendored
8
.github/workflows/update_software_list.yml
vendored
|
@ -68,6 +68,12 @@ jobs:
|
|||
run: pip install --upgrade --requirement config/requirements.txt
|
||||
- name: Create the branch for test validation
|
||||
run: git switch --create ${{ needs.setup.outputs.testing_branch }}
|
||||
- name: Normalize individual cisagov_*.yml files
|
||||
run: |
|
||||
for file in data/cisagov_*yml; do \
|
||||
normalize-yml --cisagov-format "$file" > "$file".tmp; \
|
||||
mv --force "$file".tmp "$file"; \
|
||||
done
|
||||
- name: Update the comprehensive cisagov YAML file
|
||||
run: normalize-yml --cisagov-format data/cisagov_*.yml > data/cisagov.yml
|
||||
- name: Generate a normalized YAML file from all source YAML files
|
||||
|
@ -84,7 +90,7 @@ jobs:
|
|||
commit_user_name: ${{ needs.setup.outputs.git_user }}
|
||||
commit_user_email: ${{ needs.setup.outputs.git_email }}
|
||||
commit_author: ${{ needs.setup.outputs.git_author }}
|
||||
file_pattern: SOFTWARE-LIST.md data/cisagov.yml
|
||||
file_pattern: SOFTWARE-LIST.md data/cisagov*.yml
|
||||
merge_list_update:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
|
|
Loading…
Reference in a new issue