Skip to content

Commit

Permalink
show epss and cisa known (#1098)
Browse files Browse the repository at this point in the history
![moreinfo](https://user-images.githubusercontent.com/581906/215895037-4f53d570-06b4-4dc0-918f-bf75b40f251b.png)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: factoidforrest <[email protected]>
  • Loading branch information
3 people authored Feb 1, 2023
1 parent c3221e5 commit 9377514
Show file tree
Hide file tree
Showing 18 changed files with 1,005 additions and 103 deletions.
2 changes: 1 addition & 1 deletion lunatrace/README_DEV_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ yarn run sass:build

```shell
cd bsl/ingest-worker
LUNATRACE_GRAPHQL_SERVER_SECRET=myadminsecretkey LUNATRACE_GRAPHQL_SERVER_URL=http://localhost:8080/v1/graphql go run cmd/ingestworker/main.go vulnerability ingest --source ghsa --source-relative-path advisories/github-reviewed
LUNATRACE_GRAPHQL_SERVER_SECRET=myadminsecretkey LUNATRACE_GRAPHQL_SERVER_URL=http://localhost:8080/v1/graphql go run cmd/ingestworker/main.go sync --source ghsa --source-relative-path advisories/github-reviewed
```

### Re-run everything
Expand Down
4 changes: 2 additions & 2 deletions lunatrace/bsl/backend/src/config/load-environment-vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ function checkEnvVar<E extends EnvVar<z.Schema>>(varConf: E): z.infer<E['castTo'

type VarName = keyof typeof commonEnvVarKeys;
type EnvVars = {
[name in VarName]: z.infer<(typeof commonEnvVarKeys)[name]['castTo']>;
[name in VarName]: z.infer<typeof commonEnvVarKeys[name]['castTo']>;
};

// Build the env vars and store them in the require cache as an export of this file
const partialEnvironmentVars: Partial<EnvVars> = {};

Object.keys(commonEnvVarKeys).forEach((keyName) => {
const varName = keyName as VarName;
const varConf: EnvVar<(typeof commonEnvVarKeys)[typeof varName]['castTo']> = commonEnvVarKeys[varName];
const varConf: EnvVar<typeof commonEnvVarKeys[typeof varName]['castTo']> = commonEnvVarKeys[varName];
// I can't figure out why this ignore is needed, but so be it
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down
242 changes: 242 additions & 0 deletions lunatrace/bsl/backend/src/hasura-api/generated.ts

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

Loading

0 comments on commit 9377514

Please sign in to comment.