Skip to content

[CONFIG] [Github Actions] Docker flow, ACTIONS_RUNTIME_TOKEN env added. #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Docker Image CI

on: # yamllint disable-line rule:truthy
Expand All @@ -15,7 +14,6 @@ env:
ARTIFACT_NAME: algorithm-exercises-csharp_${{ github.sha }}

jobs:

build:
name: "Build Docker images"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -157,7 +155,7 @@ jobs:
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'snyk.sarif'
sarif_file: "snyk.sarif"
scan:
name: "Trivy (sarif)"
runs-on: ubuntu-latest
Expand All @@ -182,13 +180,15 @@ jobs:
uses: aquasecurity/[email protected]
with:
image-ref: ${{ env.IMAGE_NAME }}:${{ github.sha }}
format: 'sarif'
output: 'trivy-results.sarif'
format: "sarif"
output: "trivy-results.sarif"

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
sarif_file: "trivy-results.sarif"
env:
ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }}

report:
name: "Trivy (report)"
Expand All @@ -210,4 +210,6 @@ jobs:
uses: aquasecurity/[email protected]
with:
image-ref: ${{ env.IMAGE_NAME }}:${{ github.sha }}
format: 'table'
format: "table"
env:
ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }}