File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ jobs:
110
110
# ###################################################################################################
111
111
setup-scan :
112
112
needs : [build-containers]
113
+ if : ${{ github.event_name == 'pull_request' }}
113
114
runs-on : ubuntu-latest
114
115
outputs :
115
116
matrix : ${{ steps.scan-matrix.outputs.matrix }}
@@ -126,13 +127,8 @@ jobs:
126
127
run : echo "matrix=$(cat matrix/*-${{ needs.build-containers.outputs.group }}/*.txt | jq -R '.' | jq -sc '. | unique')" >> $GITHUB_OUTPUT
127
128
scan-containers :
128
129
needs : [setup-scan]
129
- if : ${{ !inputs.no_build }}
130
+ if : ${{ !inputs.no_build && github.event_name == 'pull_request' }}
130
131
runs-on : k8-runners
131
- permissions :
132
- actions : read
133
- packages : read
134
- pull-requests : write
135
- security-events : write
136
132
strategy :
137
133
matrix :
138
134
container : ${{ fromJSON(needs.setup-scan.outputs.matrix) }}
You can’t perform that action at this time.
0 commit comments