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
Showing
24 changed files
with
604 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: lacework | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coursier/cache-action@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Get current version | ||
id: ver | ||
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}" | ||
|
||
- name: Install lacework scanner | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install curl | ||
curl -L https://github.com/lacework/lacework-vulnerability-scanner/releases/latest/download/lw-scanner-linux-amd64 -o lw-scanner | ||
chmod +x lw-scanner | ||
- name: Build docker images | ||
run: sbt docker:publishLocal | ||
|
||
- name: Scan snowplow-postgres-loader | ||
env: | ||
LW_ACCESS_TOKEN: ${{ secrets.LW_ACCESS_TOKEN }} | ||
LW_ACCOUNT_NAME: ${{ secrets.LW_ACCOUNT_NAME }} | ||
LW_SCANNER_SAVE_RESULTS: ${{ !contains(steps.version.outputs.tag, 'rc') }} | ||
run: ./lw-scanner image evaluate snowplow/snowplow-postgres-loader ${{ steps.ver.outputs.tag }} --build-id ${{ github.run_id }} --no-pull |
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
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
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
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
91 changes: 91 additions & 0 deletions
91
...esources/iglu-client-embedded/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-0
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,91 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for an Iglu resolver's configuration", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "resolver-config", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"cacheSize": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
|
||
"repositories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"name": { | ||
"type": "string" | ||
}, | ||
|
||
"priority": { | ||
"type": "integer" | ||
}, | ||
|
||
"vendorPrefixes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
|
||
"connection": { | ||
"type": "object", | ||
"oneOf": [ | ||
{ | ||
"properties": { | ||
"embedded": { | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["path"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["embedded"], | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"properties": { | ||
"http": { | ||
"type": "object", | ||
"properties": { | ||
"uri": { | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
}, | ||
"required": ["uri"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["http"], | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
}, | ||
"required": ["name", "priority", "vendorPrefixes", "connection"], | ||
"additionalProperties": false | ||
} | ||
} | ||
|
||
}, | ||
|
||
"required": ["cacheSize", "repositories"], | ||
"additionalProperties": false | ||
} | ||
|
93 changes: 93 additions & 0 deletions
93
...esources/iglu-client-embedded/com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1
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,93 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for an Iglu resolver's configuration", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "resolver-config", | ||
"format": "jsonschema", | ||
"version": "1-0-1" | ||
}, | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"cacheSize": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
|
||
"repositories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
|
||
"properties": { | ||
|
||
"name": { | ||
"type": "string" | ||
}, | ||
|
||
"priority": { | ||
"type": "integer" | ||
}, | ||
|
||
"vendorPrefixes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
|
||
"connection": { | ||
"type": "object", | ||
"oneOf": [ | ||
{ | ||
"properties": { | ||
"embedded": { | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["path"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["embedded"], | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"properties": { | ||
"http": { | ||
"type": "object", | ||
"properties": { | ||
"uri": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"apikey": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": ["uri"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["http"], | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
}, | ||
"required": ["name", "priority", "vendorPrefixes", "connection"], | ||
"additionalProperties": false | ||
} | ||
} | ||
|
||
}, | ||
|
||
"required": ["cacheSize", "repositories"], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.