René's URL Explorer Experiment


Title: Modify `expect-error` input checking to fix errors on main by henrymercer · Pull Request #1190 · github/codeql-action · GitHub

Open Graph Title: Modify `expect-error` input checking to fix errors on main by henrymercer · Pull Request #1190 · github/codeql-action

X Title: Modify `expect-error` input checking to fix errors on main by henrymercer · Pull Request #1190 · github/codeql-action

Description: We're seeing some errors in main from the function that ensures that expect-error is only set to true by the CodeQL Action PR checks, for example this run. There doesn't appear to be enough information in the logs to debug the problem, so I've modified the workflow to dump the contents of the GitHub event, and changed the checking behaviour to instead require the TEST_MODE environment variable to be set to true. This has the benefit of also working in the case that someone clones the Action repo and pushes it up somewhere else without explicitly forking it. Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary. Confirm the changelog has been updated if necessary.

Open Graph Description: We're seeing some errors in main from the function that ensures that expect-error is only set to true by the CodeQL Action PR checks, for example this run. There doesn't appear to be enough...

X Description: We're seeing some errors in main from the function that ensures that expect-error is only set to true by the CodeQL Action PR checks, for example this run. There doesn't appear to b...

Opengraph URL: https://github.com/github/codeql-action/pull/1190

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files/:range(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:30c189a8-90f2-fcbb-375d-90e6385cd7a8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC40:B621B:17E3065:219C393:699721E5
html-safe-noncee7e281822b87329596ae5cb90e2598ddfae9055a6ae9a78d406dbc83dbfe777c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzQwOkI2MjFCOjE3RTMwNjU6MjE5QzM5Mzo2OTk3MjFFNSIsInZpc2l0b3JfaWQiOiI4MjY1MTcxMjE1OTczODMxNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacef8fe0c8dd3141b5c7f77341fd8e2c6dd49c41fdd6a53eb5cc9d7d0572ca3602
hovercard-subject-tagpull_request:1028871225
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
twitter:imagehttps://avatars.githubusercontent.com/u/14129055?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/14129055?s=400&v=4
og:image:altWe're seeing some errors in main from the function that ensures that expect-error is only set to true by the CodeQL Action PR checks, for example this run. There doesn't appear to be enough...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7e6af791057690a60ffd9f5bb19a1e7b7637429945357211e6d6d09f15f081ae
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b01c3dc21c2addba0d96343ac1390c86c8bdfd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F1190%2Ffiles%2Fb21cab99b346de6e70e06d18251c1e16576f2d46
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F1190%2Ffiles%2Fb21cab99b346de6e70e06d18251c1e16576f2d46
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
Reloadhttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
Reloadhttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 439 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.5k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 147 https://github.com/github/codeql-action/issues
Pull requests 18 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
henrymercerhttps://github.com/henrymercer
mainhttps://github.com/github/codeql-action/tree/main
henrymercer/fix-debug-artifact-tests-on-pushhttps://github.com/github/codeql-action/tree/henrymercer/fix-debug-artifact-tests-on-push
Conversation 7 https://github.com/github/codeql-action/pull/1190
Commits 3 https://github.com/github/codeql-action/pull/1190/commits
Checks 0 https://github.com/github/codeql-action/pull/1190/checks
Files changed https://github.com/github/codeql-action/pull/1190/files
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
Modify expect-error input checking to fix errors on main https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#top
Show all changes 3 commits https://github.com/github/codeql-action/pull/1190/files
ff9d53b Dump GitHub event in debug artifacts failure workflow henrymercer Aug 17, 2022 https://github.com/github/codeql-action/pull/1190/commits/ff9d53b61ab3b38f43ada003d89e9742609eeb42
219a937 Require test mode to be set to use `expect-error` input henrymercer Aug 17, 2022 https://github.com/github/codeql-action/pull/1190/commits/219a937551f1365d103a49d23912f49421f7e3cc
b21cab9 Mock `expect-error` input to avoid errors in Action integration tests henrymercer Aug 17, 2022 https://github.com/github/codeql-action/pull/1190/commits/b21cab99b346de6e70e06d18251c1e16576f2d46
Clear filters https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
debug-artifacts-failure.yml https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-2457bd1c4a458a97878591474d0af20a6b18ee1d02580a3469afdfb49caf596c
actions-util.js https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-11e57a9c0915b5e6f55d41e377c4d3ffff3e8eedb5e9f48814d584bca9fcbac4
actions-util.js.map https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-ccc8ca14fec3e5e01c6b1f61c3fa80dfd5c18e661b6a27f083f98777eabefe05
analyze-action-env.test.js https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-379f850377d7dd8bbffd2032d4e7c3bee511c9d8438130002aa885b13e11c570
analyze-action-env.test.js.map https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-11659a3b3791c3de7bcef486702c63f8cbf80c1c3983aa2225bd832dace1ac4b
analyze-action-input.test.js https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-145038fb1c27d70e86b3dc56e6553aee34b7186a95992ddb4f6f571d1807ab3c
analyze-action-input.test.js.map https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-bf1dfc1f99fae8386f90af1ce30a9de81c72336c713c9875cb3627fca21ffae0
analyze-action.js https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-4926d6bcb92a4de805ceb8d280f31c24cffa2445b3a36cc658e5032a0910ed15
analyze-action.js.map https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-bf22fdf4a2955a82f610cba9e999765d28a3da4f592c5511f2b731a1822fe648
actions-util.ts https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-272a83a2815879238f61d8c6a4358a34cf98138946d7e7e950851282d8ca0b7d
analyze-action-env.test.ts https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-9c75f049a7d2f57562020744111a95b7ee9773de0d22eaeaa7f0d26a1d09954e
analyze-action-input.test.ts https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-cd3f8753896e5aa45f22ce2d2de0c291e0a49cd4472e2b304ee7489a8fa6d900
analyze-action.ts https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-c659460f1608e167fc5bef89e07b4c7db2d8cdf80e542ec788c969a6ed987d34
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
.github/workflows/debug-artifacts-failure.ymlhttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-2457bd1c4a458a97878591474d0af20a6b18ee1d02580a3469afdfb49caf596c
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/.github/workflows/debug-artifacts-failure.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/1190/files/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-2457bd1c4a458a97878591474d0af20a6b18ee1d02580a3469afdfb49caf596c
https://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-2457bd1c4a458a97878591474d0af20a6b18ee1d02580a3469afdfb49caf596c
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/actions-util.jshttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-11e57a9c0915b5e6f55d41e377c4d3ffff3e8eedb5e9f48814d584bca9fcbac4
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/actions-util.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/actions-util.js.maphttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-ccc8ca14fec3e5e01c6b1f61c3fa80dfd5c18e661b6a27f083f98777eabefe05
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/actions-util.js.map
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action-env.test.jshttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-379f850377d7dd8bbffd2032d4e7c3bee511c9d8438130002aa885b13e11c570
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/analyze-action-env.test.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action-env.test.js.maphttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-11659a3b3791c3de7bcef486702c63f8cbf80c1c3983aa2225bd832dace1ac4b
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/analyze-action-env.test.js.map
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action-input.test.jshttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-145038fb1c27d70e86b3dc56e6553aee34b7186a95992ddb4f6f571d1807ab3c
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/analyze-action-input.test.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action-input.test.js.maphttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-bf1dfc1f99fae8386f90af1ce30a9de81c72336c713c9875cb3627fca21ffae0
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/analyze-action-input.test.js.map
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action.jshttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46#diff-4926d6bcb92a4de805ceb8d280f31c24cffa2445b3a36cc658e5032a0910ed15
View file https://github.com/github/codeql-action/blob/b21cab99b346de6e70e06d18251c1e16576f2d46/lib/analyze-action.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
Please reload this pagehttps://github.com/github/codeql-action/pull/1190/files/b21cab99b346de6e70e06d18251c1e16576f2d46
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.