Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Golaszewski committed Nov 14, 2024
1 parent 6bf9a68 commit b08d323
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: '0 10 * * *'

jobs:
prepare:
list-branches-to-scan:
runs-on: ubuntu-latest
outputs:
branches: ${{ steps.branches.outputs.branches }}
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit b08d323

Please sign in to comment.