Skip to content

Commit

Permalink
ci: Update scorecard workflow to unbreak it
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Jan 25, 2025
1 parent 9979a27 commit aa2e9be
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ on:
# Only the default branch is supported.
branch_protection_rule:
push:
# Run on pushes to main, but only the main repo, not forks
# Run on pushes to main, but only the offical repo, not forks
branches: [ "main" ]
if: github.event.pull_request.head.repo.full_name == github.repository
paths-ignore:
- '**.md'
- '**.rst'
- 'docs/**'
pull_request:
# Only run on individual PRs if the workflow file itself is changed.
paths-ignore:
- '**.md'
- '**.rst'
- 'docs/**'
# Only run on individual PRs if the workflows changed
paths:
- '.github/workflows/**'

# Declare default permissions as read only.
permissions: read-all
Expand All @@ -47,7 +41,7 @@ jobs:

steps:
- name: "Checkout code"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: '0'
Expand Down

0 comments on commit aa2e9be

Please sign in to comment.