test-action #778
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: test-action | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 8 * * *" | |
jobs: | |
test-action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Pull Docker image | |
run: docker image pull techallylw/vulnerable-container:v0.0.1 | |
- name: Build lw-scanner action container image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
load: true | |
push: false | |
tags: ${{ github.repository }}:latest | |
- name: lw-scanner | |
id: lw-scanner | |
uses: ./ | |
with: | |
LW_ACCOUNT_NAME: ${{ secrets.LW_ACCOUNT_NAME }} | |
LW_ACCESS_TOKEN: ${{ secrets.LW_ACCESS_TOKEN }} | |
IMAGE_NAME: techallylw/vulnerable-container | |
IMAGE_TAG: v0.0.1 |