-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c9ec32
commit a943f0d
Showing
25 changed files
with
427 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
packages: code/*/*.cabal | ||
|
||
package hsec-core | ||
package hsec-tools | ||
package cvss | ||
package osv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
##### Haskell | ||
dist | ||
dist-* | ||
cabal-dev | ||
*.o | ||
*.hi | ||
*.hie | ||
*.chi | ||
*.chs.h | ||
*.dyn_o | ||
*.dyn_hi | ||
.hpc | ||
.hsenv | ||
.cabal-sandbox/ | ||
cabal.sandbox.config | ||
*.prof | ||
*.aux | ||
*.hp | ||
*.eventlog | ||
.stack-work/ | ||
cabal.project.local | ||
cabal.project.local~ | ||
.HTF/ | ||
.ghc.environment.* | ||
build | ||
bin-* | ||
|
||
result | ||
.direnv | ||
.env |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# hsec-core | ||
|
||
`hesc-core` aims to support [Haskell advisories database](https://github.com/haskell/security-advisories). | ||
|
||
## Building | ||
|
||
We aim to support both regular cabal-based and nix-based builds. | ||
|
||
## Testing | ||
|
||
Run (and auto update) the golden test: | ||
|
||
```ShellSession | ||
cabal test -O0 --test-show-details=direct --test-option=--accept | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
cabal-version: 2.4 | ||
name: hsec-core | ||
version: 0.1.0.0 | ||
|
||
-- A short (one-line) description of the package. | ||
synopsis: Core package representing Haskell advisories | ||
|
||
-- A longer description of the package. | ||
description: Core package representing Haskell advisories. | ||
|
||
-- A URL where users can report bugs. | ||
-- bug-reports: | ||
|
||
-- The license under which the package is released. | ||
license: BSD-3-Clause | ||
author: David Christiansen | ||
maintainer: [email protected] | ||
|
||
-- A copyright notice. | ||
-- copyright: | ||
category: Data | ||
extra-doc-files: CHANGELOG.md | ||
|
||
tested-with: | ||
GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.3 || ==9.8.1 | ||
|
||
library | ||
exposed-modules: | ||
Security.Advisories.Core.Advisory | ||
Security.Advisories.Core.HsecId | ||
|
||
build-depends: | ||
, base >=4.14 && <4.20 | ||
, Cabal-syntax >=3.8.1.0 && <3.11 | ||
, cvss | ||
, osv | ||
, pandoc-types >=1.22 && <2 | ||
, safe >=0.3 | ||
, text >=1.2 && <3 | ||
, time >=1.9 && <1.14 | ||
|
||
-- , commonmark ^>=0.2.2 | ||
-- , commonmark-pandoc >=0.2 && <0.3 | ||
-- , containers >=0.6 && <0.7 | ||
-- , mtl >=2.2 && <2.4 | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
ghc-options: | ||
-Wall -Wcompat -Widentities -Wincomplete-record-updates | ||
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints | ||
|
||
test-suite spec | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Spec.hs | ||
build-depends: | ||
, base <5 | ||
, cvss | ||
, hsec-core | ||
, tasty <1.5 | ||
, tasty-hunit <0.11 | ||
, text | ||
|
||
default-language: Haskell2010 | ||
ghc-options: | ||
-Wall -Wcompat -Widentities -Wincomplete-record-updates | ||
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c-tools/src/Security/Advisories/HsecId.hs → ...re/src/Security/Advisories/Core/HsecId.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Security.Advisories.HsecId | ||
module Security.Advisories.Core.HsecId | ||
( | ||
HsecId | ||
, hsecIdYear | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Main where | ||
|
||
import Test.Tasty | ||
|
||
main :: IO () | ||
main = | ||
defaultMain $ | ||
testGroup | ||
"Tests" | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.