Skip to content

Commit

Permalink
fix gen-slither-matrix workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jun 24, 2024
1 parent b1854d6 commit 5005daf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,29 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

gen-slither-matrix:
set-slither-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: get list of packages
- name: set-matrix
id: get-dirs
run: |
dirs=$(ls -1 packages)
dirs_json=$(printf '%s\n' "$dirs" | jq -R . | jq -s .)
echo "$dirs_json" >> $GITHUB_ENV
- name: set matrix
run: echo "::set-output name=matrix::${{ env.dirs_json }}"
matrix=$(printf '%s\n' "$dirs" | jq -R | jq -s)
echo "$matrix"
echo "matrix=$matrix" >> $GITHUB_OUTPUT
slither:
needs: gen-slither-matrix
needs: set-slither-matrix
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
strategy:
matrix:
dir: ${{ fromJson(needs.gen-slither.matrix.outputs.matrix) }}
dir: ${{ fromJson(needs.set-slither-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Run slither
Expand Down

0 comments on commit 5005daf

Please sign in to comment.