lacework #116
Workflow file for this run
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
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: 8 | |
- 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 | |
env: | |
DOCKER_BUILDKIT: 1 | |
run: sbt docker:publishLocal | |
- name: Scan snowplow-bigquery-streamloader | |
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-bigquery-streamloader ${{ steps.ver.outputs.tag }} --build-id ${{ github.run_id }} --no-pull | |
- name: Scan snowplow-bigquery-streamloader distroless | |
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-bigquery-streamloader ${{ steps.ver.outputs.tag }}-distroless --build-id ${{ github.run_id }} --no-pull | |
- name: Scan snowplow-bigquery-repeater | |
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-bigquery-repeater ${{ steps.ver.outputs.tag }} --build-id ${{ github.run_id }} --no-pull | |
- name: Scan snowplow-bigquery-repeater distroless | |
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-bigquery-repeater ${{ steps.ver.outputs.tag }}-distroless --build-id ${{ github.run_id }} --no-pull | |
- name: Scan snowplow-bigquery-mutator distroless | |
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-bigquery-mutator ${{ steps.ver.outputs.tag }}-distroless --build-id ${{ github.run_id }} --no-pull |