Skip to content

Commit

Permalink
feat: cwv audits (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekremney committed Nov 17, 2023
1 parent d954af3 commit 16af6d6
Show file tree
Hide file tree
Showing 13 changed files with 12,279 additions and 27,183 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/codeql.yml

This file was deleted.

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,37 @@ $ npm test
```bash
$ npm run lint
```

## Message Body Formats

Audit worker consumes the `AUDIT_JOBS_QUEUE` queue, performs the requested audit, then queues the result to `AUDIT_RESULTS_QUEUE` for the interested parties to consume later on.

Expected message body format in `AUDIT_JOBS_QUEUE` is:

```json
{
"type": "string",
"url": "string",
"auditContext": "object"
}
```

Output message body format sent to `AUDIT_RESULTS_QUEUE` is:

```json
{
"type": "string",
"url": "string",
"auditContext": "object",
"auditResult": "object"
}
```

## Required ENV Variables

Currently, audit worker requires two env variables:

```plaintext
AUDIT_RESULTS_QUEUE_URL=url of the queue to send audit results to
RUM_DOMAIN_KEY=global domain key for the rum api
```
Loading

0 comments on commit 16af6d6

Please sign in to comment.