Skip to content

Commit 8924d8d

Browse files
committed
[policy] Gate security scans on repository visibility
Change-Id: I998948b9c6aeba98016ad15215e639940cc45d17
1 parent 3e99b52 commit 8924d8d

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CodeQL
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [main]
67
pull_request:
@@ -14,8 +15,10 @@ permissions:
1415
jobs:
1516
analyze:
1617
name: Analyze TypeScript
18+
if: github.event.repository.private == false
1719
runs-on: ubuntu-latest
1820
permissions:
21+
actions: read
1922
contents: read
2023
security-events: write
2124
packages: read

.github/workflows/scorecard.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: OpenSSF Scorecard
22

33
on:
4+
workflow_dispatch:
45
branch_protection_rule:
56
push:
67
branches: [main]
@@ -12,6 +13,7 @@ permissions: read-all
1213
jobs:
1314
analysis:
1415
name: Supply-chain analysis
16+
if: github.event.repository.private == false
1517
runs-on: ubuntu-latest
1618
permissions:
1719
actions: read

0 commit comments

Comments
 (0)