diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index 0c5e77f9..3fb03820 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -6,7 +6,7 @@ on: - cron: '0 10 * * *' jobs: - prepare: + list-branches-to-scan: runs-on: ubuntu-latest outputs: branches: ${{ steps.branches.outputs.branches }} @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Create branches to test + - name: List branches to scan id: branches run: | # regex matches branches like @@ -29,10 +29,10 @@ jobs: echo "branches=$(echo $BRANCHES)" >> $GITHUB_OUTPUT scan: runs-on: ubuntu-latest - needs: prepare + needs: list-branches-to-scan strategy: matrix: - branch: ${{ fromJson(needs.prepare.outputs.branches) }} + branch: ${{ fromJson(needs.list-branches-to-scan.outputs.branches) }} permissions: security-events: write steps: