diff --git a/.github/workflows/relyance.yml b/.github/workflows/relyance.yml new file mode 100644 index 00000000..685f1479 --- /dev/null +++ b/.github/workflows/relyance.yml @@ -0,0 +1,23 @@ +name: Relyance SCI Scan + +on: + #TODO: Modify the cron job schedule below. + schedule: + - cron: "0 20 * * *" + workflow_dispatch: + +jobs: + #TODO: Modify the job names and the machine below if you would like. + execute-relyance-sci: + name: Relyance SCI Job + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + # TODO: Update the docker pull command in the "run" section below. Recommend setting the ACCESS_TOKEN as an environment variable. + - name: Pull and run SCI binary + run: |- + docker pull gcr.io/relyance-ext/compliance_inspector:release && \ + docker run --rm -v `pwd`:/repo --env 'API_KEY=${{ secrets.DPP_SCI_KEY }}' gcr.io/relyance-ext/compliance_inspector:release