Skip to content

Commit

Permalink
OSSF Scorecard robustly selects default branch (#41)
Browse files Browse the repository at this point in the history
Don't hardcode the branch name; compare with the default configuration.
  • Loading branch information
jasonkarns authored Jun 4, 2024
1 parent 4100507 commit af6c453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
BASH_EXEC_IGNORE_LIBRARIES: true # superlinter bug

ossf-scorecard:
if: github.ref_name == 'main'
if: github.ref_name == github.event.repository.default_branch
permissions: {id-token: write, security-events: write}
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit af6c453

Please sign in to comment.