diff --git a/.github/workflows/audit/action.yml b/.github/workflows/audit/action.yml index cf82c9bf7..b8cf26db2 100644 --- a/.github/workflows/audit/action.yml +++ b/.github/workflows/audit/action.yml @@ -7,4 +7,4 @@ runs: run: cd ${{ matrix.project }} && npm ci --no-audit --legacy-peer-deps && echo "result=$(npm run audit -- --production)" >> "$GITHUB_OUTPUT" shell: bash outputs: - result: ${{ steps.audit.outputs.result}} + result: ${{ steps.audit.outputs.result }} diff --git a/.github/workflows/daily-depcheck.yml b/.github/workflows/daily-depcheck.yml index 1633d82cb..1952883a7 100644 --- a/.github/workflows/daily-depcheck.yml +++ b/.github/workflows/daily-depcheck.yml @@ -7,6 +7,8 @@ on: jobs: audit: runs-on: ubuntu-latest + outputs: + result: ${{ steps.audit.outputs.result }} strategy: matrix: node-version: [ 18.x ] @@ -32,12 +34,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - uses: ./.github/workflows/audit + - id: audit + name: Audit project ${{ matrix.project }} + run: cd ${{ matrix.project }} && npm ci --no-audit --legacy-peer-deps && echo "result=$(npm run audit -- --production)" >> "$GITHUB_OUTPUT" + shell: bash scheduled-audit-notification: needs: - audit if: always() uses: ./.github/workflows/scheduled-audit-notification.yml with: - success: ${{ needs.analyze.result == 'success' }} - result: ${{ needs.analyze.outputs.result }} + success: ${{ needs.audit.result == 'success' }} + result: ${{ needs.audit.outputs.result }}