Skip to content

Commit

Permalink
hsec-sync: add doc usage
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven authored and frasertweedale committed Jul 30, 2024
1 parent 801740e commit 674e0b0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions code/hsec-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,25 @@ Synchronize with the [Haskell advisories database](https://github.com/haskell/se
## Building

We aim to support both regular cabal-based and nix-based builds.

## Design

[hsec-tools](../hsec-tools/) is the main entry point for dealing with [security advisories](https://github.com/haskell/security-advisories).

Libraries implementors and services providers will mainly be interested by
`Security.Advisories.Queries` and `hsec-tools query` which allows querying
against a directory containing the advisories.

There are two ways for maintaining this local directory up-to-date:

* Manually (based on `git` of fetching archive from GitHub)
* Relying on `hsec-sync` (either via `Security.Advisories.Sync.sync` or `hsec-sync sync`)

![overview](./overview.png)

The recommended workflow is:

1. Use `hsec-sync` to ensure having an up-to-date advisories directory (created or updated)
2. Use `hsec-tools` to perform queries against it

![recommended-workflow](./recommended-workflow.png)
2 changes: 1 addition & 1 deletion code/hsec-sync/hsec-sync.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ maintainer: [email protected]
-- A copyright notice.
-- copyright:
category: Data
extra-doc-files: CHANGELOG.md
extra-doc-files: CHANGELOG.md, overview.png, recommended-workflow.png
tested-with:
GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.3 || ==9.8.1

Expand Down
Binary file added code/hsec-sync/overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/hsec-sync/recommended-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 674e0b0

Please sign in to comment.