We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbacaeb commit 063c593Copy full SHA for 063c593
1 file changed
.github/workflows/docker-build.yml
@@ -95,6 +95,14 @@ jobs:
95
hide-progress: true
96
output: trivy.txt
97
98
+ - name: Read Trivy report file
99
+ id: read_trivy
100
+ if: github.event_name == 'pull_request' && inputs.security-scan && inputs.security-report == 'comment'
101
+ run: |
102
+ echo "report<<EOF" >> "$GITHUB_OUTPUT"
103
+ cat trivy.txt >> "$GITHUB_OUTPUT"
104
+ echo "EOF" >> "$GITHUB_OUTPUT"
105
+
106
- name: Find existing Trivy comment
107
if: github.event_name == 'pull_request' && inputs.security-scan && inputs.security-report == 'comment'
108
id: find_trivy
@@ -118,7 +126,7 @@ jobs:
118
126
<details><summary>Click to expand detailed results</summary>
119
127
120
128
```bash
121
- ${{ steps.trivy.outputs.report }}
129
+ ${{ steps.read_trivy.outputs.report }}
122
130
```
123
131
</details>
124
132
0 commit comments