Skip to content

Commit

Permalink
ci: updete makefile (#34)
Browse files Browse the repository at this point in the history
* ci: updete `makefile`
* ci: remove `docker` vulnerability scanner
  • Loading branch information
DeadNews committed Sep 19, 2023
1 parent 48bc20d commit 0252d60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
# To upload sarif files.
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -82,19 +79,3 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

# Analyze vulnerabilities.
- name: Run Trivy vulnerability scanner
if: ${{ github.event_name != 'pull_request' }}
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # v0.12.0
with:
image-ref: ${{ steps.meta.outputs.tags }}
format: "sarif"
output: "trivy-results.sarif"

# Upload report to GitHub code scanning.
- name: Upload Trivy scan results to GitHub Security tab
if: ${{ github.event_name != 'pull_request' }}
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results.sarif"
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
default: build

run_app:
go run cmd/deadnews-template-go/main.go

Expand Down

0 comments on commit 0252d60

Please sign in to comment.