Skip to content

Commit 1760889

Browse files
authored
ci: Harden GitHub Actions (#2915)
1 parent e680514 commit 1760889

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ env:
66
permissions: read-all
77

88
on:
9+
push:
10+
branches: [main]
911
schedule:
1012
- cron: '0 0 * * *' # once in a day at 00:00
1113
workflow_dispatch:
@@ -22,7 +24,7 @@ jobs:
2224

2325
steps:
2426
- name: Harden the runner (Audit all outbound calls)
25-
uses: step-security/harden-runner@v2
27+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
2628
with:
2729
egress-policy: audit
2830

.github/workflows/markdown-link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Install markdown-link-check
25-
run: npm install -g markdown-link-check@3.11.2
25+
run: npm install -g "git://github.com/tcort/markdown-link-check.git#ef7e09486e579ba7479700b386e7ca90f34cbd0a" # v3.13.7
2626

2727
- name: Run markdown-link-check
2828
run: |

0 commit comments

Comments
 (0)