-
Notifications
You must be signed in to change notification settings - Fork 1
Harden workflow egress policies and pin @playwright/mcp version #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a2d5c65
dcc4209
80d176e
0fb0dc7
6fc014b
ad3d0df
8bd49c1
2492724
647e3c0
5cf1a8e
7e79308
c620e77
57bf1e6
3beefe5
813c03e
35340a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,7 +29,18 @@ jobs: | |||||||||
| - name: Harden Runner | ||||||||||
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | ||||||||||
| with: | ||||||||||
| egress-policy: audit | ||||||||||
| egress-policy: block | ||||||||||
| allowed-endpoints: > | ||||||||||
| api.github.com:443 | ||||||||||
| codeload.github.com:443 | ||||||||||
| fonts.googleapis.com:443 | ||||||||||
| fonts.gstatic.com:443 | ||||||||||
| github.com:443 | ||||||||||
| nodejs.org:443 | ||||||||||
| objects.githubusercontent.com:443 | ||||||||||
| registry.npmjs.org:443 | ||||||||||
| riksdagsmonitor.com:443 | ||||||||||
| storage.googleapis.com:443 | ||||||||||
|
||||||||||
| storage.googleapis.com:443 | |
| storage.googleapis.com:443 | |
| fonts.googleapis.com:443 | |
| fonts.gstatic.com:443 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 647e3c0 — fonts.googleapis.com:443 and fonts.gstatic.com:443 are now in the Lighthouse job's allowed-endpoints.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,7 +16,14 @@ jobs: | |||||||||
| - name: Harden Runner | ||||||||||
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | ||||||||||
| with: | ||||||||||
| egress-policy: audit | ||||||||||
| egress-policy: block | ||||||||||
| allowed-endpoints: > | ||||||||||
| api.github.com:443 | ||||||||||
| codeload.github.com:443 | ||||||||||
| github.com:443 | ||||||||||
| nodejs.org:443 | ||||||||||
| objects.githubusercontent.com:443 | ||||||||||
| registry.npmjs.org:443 | ||||||||||
|
|
||||||||||
| - name: Checkout repository | ||||||||||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||||||||||
|
|
@@ -61,7 +68,14 @@ jobs: | |||||||||
| - name: Harden Runner | ||||||||||
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | ||||||||||
| with: | ||||||||||
| egress-policy: audit | ||||||||||
| egress-policy: block | ||||||||||
| allowed-endpoints: > | ||||||||||
| api.github.com:443 | ||||||||||
| codeload.github.com:443 | ||||||||||
| github.com:443 | ||||||||||
| nodejs.org:443 | ||||||||||
| objects.githubusercontent.com:443 | ||||||||||
| registry.npmjs.org:443 | ||||||||||
|
|
||||||||||
| - name: Checkout repository | ||||||||||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||||||||||
|
|
@@ -119,7 +133,24 @@ jobs: | |||||||||
| - name: Harden Runner | ||||||||||
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | ||||||||||
| with: | ||||||||||
| egress-policy: audit | ||||||||||
| egress-policy: block | ||||||||||
| allowed-endpoints: > | ||||||||||
| api.github.com:443 | ||||||||||
| cia.sourceforge.io:443 | ||||||||||
| codeload.github.com:443 | ||||||||||
| data.riksdagen.se:443 | ||||||||||
| data.worldbank.org:443 | ||||||||||
| github.com:443 | ||||||||||
| nodejs.org:443 | ||||||||||
| objects.githubusercontent.com:443 | ||||||||||
| raw.githubusercontent.com:443 | ||||||||||
| registry.npmjs.org:443 | ||||||||||
| riksdagsmonitor.com:443 | ||||||||||
|
||||||||||
| riksdagsmonitor.com:443 | |
| riksdagsmonitor.com:443 | |
| data.riksdagen.se:443 | |
| www.riksdagen.se:443 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 647e3c0 — data.riksdagen.se:443 and www.riksdagen.se:443 are now in the link-checker's allowed-endpoints.
Copilot
AI
Mar 1, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link-checker job runs linkinator https://riksdagsmonitor.com/ and (per the current --skip regex) will attempt to validate external links on the homepage beyond the riksdagen.se domains (e.g., links to www.hack23.com and www.linkedin.com are present in index.html). With egress-policy: block, those requests will be blocked and inflate the external-links report with false failures. Either add the relevant domains (e.g., www.hack23.com:443, www.linkedin.com:443) to allowed-endpoints, or extend the --skip pattern to exclude them so the report reflects real link issues rather than egress blocks.
| www.riksdagen.se:443 | |
| www.riksdagen.se:443 | |
| www.hack23.com:443 | |
| www.linkedin.com:443 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in c620e77 — added www.hack23.com:443 and www.linkedin.com:443 as requested, plus all other external domains linked from index.html that would be blocked: cia.sourceforge.io:443, data.worldbank.org:443, raw.githubusercontent.com:443, www.esv.se:443, and www.val.se:443.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actions/checkouttypically downloads the repository archive fromcodeload.github.com(notgithub.com). Withegress-policy: block, the checkout step can fail unlesscodeload.github.com:443is included inallowed-endpointsfor jobs that useactions/checkout.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 0fb0dc7 — added
codeload.github.com:443to every job that usesactions/checkout(3 jobs in quality-checks.yml, 3 in javascript-testing.yml, 1 in lighthouse-ci.yml).