Skip to content

Commit b4f1845

Browse files
Add workflow_dispatch trigger to scorecard.yml (#1331)
Co-authored-by: talele08 <talele08@users.noreply.github.com>
1 parent 7b9c395 commit b4f1845

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- cron: '45 1 * * 4'
1414
push:
1515
branches: [ "security-patch" ]
16+
workflow_dispatch:
1617

1718
# Declare default permissions as read only.
1819
permissions: read-all
@@ -22,15 +23,12 @@ jobs:
2223
name: Scorecard analysis
2324
runs-on: ubuntu-latest
2425
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
25-
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
26+
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
2627
permissions:
2728
# Needed to upload the results to code-scanning dashboard.
2829
security-events: write
2930
# Needed to publish results and get a badge (see publish_results below).
3031
id-token: write
31-
# Uncomment the permissions below if installing in a private repository.
32-
# contents: read
33-
# actions: read
3432

3533
steps:
3634
- name: "Checkout code"

0 commit comments

Comments
 (0)