85
85
- name : Download image
86
86
run : |
87
87
. venv/bin/activate
88
- openstack image save --file ${{ steps.manifest.outputs.image-name }}.qcow2 ${{ steps.manifest.outputs.image-name }}
88
+ openstack image save --file /mnt/ ${{ steps.manifest.outputs.image-name }}.qcow2 ${{ steps.manifest.outputs.image-name }}
89
89
90
90
- name : Set up QEMU
91
91
uses : docker/setup-qemu-action@v3
@@ -96,32 +96,32 @@ jobs:
96
96
sudo apt -y install libguestfs-tools
97
97
98
98
- name : mkdir for mount
99
- run : sudo mkdir -p '. /${{ steps.manifest.outputs.image-name }}'
99
+ run : sudo mkdir -p '/mnt /${{ steps.manifest.outputs.image-name }}'
100
100
101
101
- name : mount qcow2 file
102
- run : sudo guestmount -a ${{ steps.manifest.outputs.image-name }}.qcow2 -i --ro -o allow_other '. /${{ steps.manifest.outputs.image-name }}'
102
+ run : sudo guestmount -a ${{ steps.manifest.outputs.image-name }}.qcow2 -i --ro -o allow_other '/mnt /${{ steps.manifest.outputs.image-name }}'
103
103
104
104
- name : Run Trivy vulnerability scanner
105
105
uses :
aquasecurity/[email protected]
106
106
with :
107
107
scan-type : fs
108
- scan-ref : " . /${{ steps.manifest.outputs.image-name }}"
108
+ scan-ref : " /mnt /${{ steps.manifest.outputs.image-name }}"
109
109
scanners : " vuln"
110
110
format : sarif
111
- output : " ${{ steps.manifest.outputs.image-name }}.sarif"
111
+ output : " /mnt/ ${{ steps.manifest.outputs.image-name }}.sarif"
112
112
# turn off secret scanning to speed things up
113
113
114
114
- name : Upload Trivy scan results to GitHub Security tab
115
115
uses : github/codeql-action/upload-sarif@v3
116
116
with :
117
- sarif_file : " ${{ steps.manifest.outputs.image-name }}.sarif"
117
+ sarif_file : " /mnt/ ${{ steps.manifest.outputs.image-name }}.sarif"
118
118
category : " ${{ matrix.os_version }}-${{ matrix.build }}"
119
119
120
120
- name : Fail if scan has CRITICAL vulnerabilities
121
121
uses :
aquasecurity/[email protected]
122
122
with :
123
123
scan-type : fs
124
- scan-ref : " . /${{ steps.manifest.outputs.image-name }}"
124
+ scan-ref : " /mnt /${{ steps.manifest.outputs.image-name }}"
125
125
scanners : " vuln"
126
126
format : table
127
127
exit-code : ' 1'
0 commit comments