File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ permissions:
6868 contents : read
6969 packages : read
7070 security-events : read # Required for CodeQL alerts API
71+ vulnerability-alerts : read # Required for Dependabot alerts API
7172 id-token : write # Required for OIDC authentication
7273
7374jobs :
@@ -143,7 +144,7 @@ jobs:
143144 id : check
144145 env :
145146 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146- DEPENDABOT_PAT : ${{ secrets.DEPENDABOT_PAT }}
147+ DEPENDABOT_PAT : ${{ secrets.DEPENDABOT_PAT || secrets.GITHUB_TOKEN }}
147148 run : |
148149 HAS_ALERTS=false
149150
@@ -194,7 +195,7 @@ jobs:
194195 - name : Write alerts summary
195196 env :
196197 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
197- DEPENDABOT_PAT : ${{ secrets.DEPENDABOT_PAT }}
198+ DEPENDABOT_PAT : ${{ secrets.DEPENDABOT_PAT || secrets.GITHUB_TOKEN }}
198199 run : |
199200 echo "## Dependabot & CodeQL Alert Check" >> "$GITHUB_STEP_SUMMARY"
200201 echo "" >> "$GITHUB_STEP_SUMMARY"
@@ -287,7 +288,7 @@ jobs:
287288
288289 - name : Fetch Dependabot alerts
289290 env :
290- DEPENDABOT_PAT : ${{ secrets.DEPENDABOT_PAT }}
291+ DEPENDABOT_PAT : ${{ secrets.DEPENDABOT_PAT || secrets.GITHUB_TOKEN }}
291292 run : |
292293 if [ -z "$DEPENDABOT_PAT" ]; then
293294 echo "::warning::DEPENDABOT_PAT not configured. Writing empty Dependabot alerts."
You can’t perform that action at this time.
0 commit comments