File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ {% - raw -%}
12# This workflow uses actions that are not certified by GitHub. They are provided
23# by a third-party and are governed by separate terms of service, privacy
34# policy, and support documentation.
2324 name: Scorecard analysis
2425 runs-on: ubuntu-latest
2526 # `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
26- if : github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
27+ {% - endraw -%}
28+ {% set github_repo_url = github_url .split ("/" )[-2:].join ("/" ) %}
29+ if: (github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request') && github.repository == '{{ github_repo_url }}'
30+ {% - raw -%}
2731 permissions:
2832 # Needed to upload the results to code-scanning dashboard.
2933 security-events: write
7781 uses: github/codeql-action/upload-sarif@97a2bfd2a3d26d458da69e548f7f859d6fca634d # v3.28.15
7882 with:
7983 sarif_file: results.sarif
84+ {% - endraw -%}
You can’t perform that action at this time.
0 commit comments