Skip to content

Commit

Permalink
Can't have job-level env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed May 30, 2024
1 parent a6d1fae commit 92022de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
pull_request:
workflow_dispatch:
schedule: # monthly (10th)
- cron: '0 0 10 * *' # https://crontab.guru/#0_0_10_*_*
- cron: '0 0 10 * *' # https://crontab.guru/#0_0_10_*_*

permissions: read-all

env: {ossf_results: results.sarif}

jobs:
test:
uses: nodenv/.github/.github/workflows/test.yml@v4
Expand All @@ -17,18 +19,17 @@ jobs:
if: github.ref_name == 'main'
permissions: {id-token: write, security-events: write}
runs-on: ubuntu-latest
env: {results: results.sarif}
steps:
- uses: actions/checkout@v4
- uses: ossf/scorecard-action@v2.3.3
with:
results_file: ${{ env.results }}
results_file: ${{ env.ossf_results }}
results_format: sarif
publish_results: true
- uses: actions/upload-artifact@v4
with:
name: ${{ env.results }}
path: ${{ env.results }}
name: ${{ env.ossf_results }}
path: ${{ env.ossf_results }}
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ env.results }}
sarif_file: ${{ env.ossf_results }}

0 comments on commit 92022de

Please sign in to comment.