Skip to content

Commit

Permalink
Merge pull request #10 from betadots/debug_ci
Browse files Browse the repository at this point in the history
debug
  • Loading branch information
rwaffen authored Mar 15, 2024
2 parents 83d074a + 99292ce commit 28e683e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ jobs:
security-events: write
steps:
- name: Build container
uses: rwaffen/gha-build-and-publish-a-container@v2
uses: rwaffen/gha-build-and-publish-a-container@debug_publish
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
publish: 'false'
tags: ci/dummy:${{ github.sha }}
tags: |
ci/dummy:${{ github.sha }}
- name: check-images
run: docker images

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ghcr.io/${{ github.repository }}:${{ github.sha }}
format: 'sarif'
output: 'trivy-results.sarif'
# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: ghcr.io/${{ github.repository }}:${{ github.sha }}
# format: 'sarif'
# output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: 'trivy-results.sarif'
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
- push
push:
branches:
- 'main'

name: Build 🛢️ container

Expand All @@ -17,7 +19,7 @@ jobs:
run: echo "tag=${TAG:1}" >> $GITHUB_OUTPUT

- name: Build container
uses: voxpupuli/gha-build-and-publish-a-container@v2
uses: rwaffen/gha-build-and-publish-a-container@debug_publish
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
tags: |
Expand Down

0 comments on commit 28e683e

Please sign in to comment.