chore(sdk): allow sdk checks only on prowler repository (#9119)

Co-authored-by: César Arroba <19954079+cesararroba@users.noreply.github.com>
This commit is contained in:
Prowler BotandCésar Arroba authored and GitHub committed 2025-10-31 11:48:03 +01:00
1 parent 08ee5c9a43
commit 7055e28e09
5 files changed
+8 -3

No files matched your search

+2 -1
View File
@@ -29,6 +29,7 @@ env:
jobs:
sdk-dockerfile-lint:
if: github.repository == 'prowler-cloud/prowler'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
@@ -100,7 +101,7 @@ jobs:
cache-to: type=gha,mode=max
- name: Scan SDK container with Trivy
if: github.repository == 'prowler-cloud/prowler' && steps.check-changes.outputs.any_changed == 'true'
if: steps.check-changes.outputs.any_changed == 'true'
uses: ./.github/actions/trivy-scan
with:
image-name: ${{ env.IMAGE_NAME }}