Skip to content

Commit

Permalink
fix: alert conditions are now being created correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rudouglas committed Oct 11, 2021
1 parent dbe2559 commit 56664ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/import-data/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/import-data/src/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const createAlertLocal = async (accountId: number, quickstart: string, policyId:

fileNames.forEach(async file => {
const loadedYaml = yaml.loadAll(fs.readFileSync(`${dir}/${file}`, 'utf-8'));
const parsedAlert = JSON.parse(JSON.stringify(loadedYaml));
const parsedAlert = JSON.parse(JSON.stringify(loadedYaml))[0];

if (parsedAlert.type === 'BASELINE') {
const filledFile = transformData(parsedAlert);
Expand Down

0 comments on commit 56664ff

Please sign in to comment.