diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4028e5..fcd2b81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -#publish your docker image to github container registry +#publish the docker image to github container registry name: publish image and scan on: [push] @@ -14,7 +14,7 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: lacework-community + username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build the hello-world Docker image @@ -27,18 +27,17 @@ jobs: test-inline-scanner: runs-on: ubuntu-latest steps: - - name: Check out the repo + - name: Checkout uses: actions/checkout@v2 - name: Pull Docker image - run: docker pull ghcr.io/lacework-community/inline-scanner-with-github-actions:latest - - - name: lw-scanner + run: docker pull ghcr.io/ladykerr/gh-action-demo:latest + - name: Scan the image uses: lacework/lw-scanner-action@v0.7.1 with: LW_ACCOUNT_NAME: ${{ secrets.LW_ACCOUNT_NAME }} LW_ACCESS_TOKEN: ${{ secrets.LW_ACCESS_TOKEN }} - IMAGE_NAME: ghcr.io/lacework-community/inline-scanner-with-github-actions + IMAGE_NAME: docker pull ghcr.io/ladykerr/gh-action-demo IMAGE_TAG: latest SAVE_BUILD_REPORT: true BUILD_REPORT_FILE_NAME: report.html