Skip to content

Commit

Permalink
chore: change owner name
Browse files Browse the repository at this point in the history
  • Loading branch information
r1skz3ro committed Jun 24, 2024
1 parent 370a34e commit 93e6e2b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/trivy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
jobs:
build_docker_image:
name: Build docker image
timeout-minutes: 30
timeout-minutes: 15
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -31,16 +31,18 @@ jobs:
- name: Build docker image
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Log in to registry
- name: Log in to gHRC
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
run: docker push ghcr.io/${{ github.repository_owner }}/cpf/$IMAGE_NAME:$VERSION
run: |
docker tag $IMAGE_NAME ghcr.io/tivix/cpf/$IMAGE_NAME:$VERSION
docker push ghcr.io/tivix/cpf/$IMAGE_NAME:$VERSION
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: "ghcr.io/${{ github.repository_owner }}/cpf/$IMAGE_NAME:$VERSION"
image-ref: "ghcr.io/tivix/cpf/${{ env.IMAGE_NAME }}:${{ env.VERSION }}"
scanners: "vuln,secret,config"
format: "sarif"
output: "trivy-fe-results.sarif"
Expand Down

0 comments on commit 93e6e2b

Please sign in to comment.