Skip to content

Commit

Permalink
fix: s/secrets.GITHUB_TOKEN/inputs.token/g and delete double login
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed May 6, 2024
1 parent 95f14d8 commit 06281f5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,13 @@ runs:
username: ${{ github.actor }}
password: ${{ inputs.token }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ inputs.token }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: ${{ inputs.image-ref }}
format: "json"
output: "results.json"
github-pat: ${{ secrets.GITHUB_TOKEN }}
github-pat: ${{ inputs.token }}

- name: Convert results to sarif
uses: aquasecurity/[email protected]
Expand Down

0 comments on commit 06281f5

Please sign in to comment.