René's URL Explorer Experiment


Title: Use tmp dir for external queries test by robertbrignull · Pull Request #19 · github/codeql-action · GitHub

Open Graph Title: Use tmp dir for external queries test by robertbrignull · Pull Request #19 · github/codeql-action

X Title: Use tmp dir for external queries test by robertbrignull · Pull Request #19 · github/codeql-action

Description: The external queries tests run in a fixed directory. This is arguably fine when run as part of CI, but if the tests are run multiple times locally then they start to interfere with each other. To see it's working, you can see in the test logs Cloning into '/tmp/codeql-action-1XUxpg/github/codeql-go' This PR creates a random tmp dir for each test run and deletes it when the test is done. I created a shared function for this because I intend to start using it for other tests as well. Also by populating the RUNNER_WORKSPACE env var we can make it required in checkoutExternalQueries and this avoids the hardcoded alternative path. @Daverlo Merge / deployment checklist Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in other repos! CodeQL using init/analyze actions - https://github.com/Anthophila/test-electron/actions/runs/96083423 3rd party tool using upload action - https://github.com/Anthophila/test-electron/actions/runs/96083425 Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.

Open Graph Description: The external queries tests run in a fixed directory. This is arguably fine when run as part of CI, but if the tests are run multiple times locally then they start to interfere with each other. To s...

X Description: The external queries tests run in a fixed directory. This is arguably fine when run as part of CI, but if the tests are run multiple times locally then they start to interfere with each other. To s...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d55bcf26-5430-46f5-083c-ce4b1c140992
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC034:A02C3:D65658:12294C1:6A555FEE
html-safe-nonce7062bf3c4636c651ced1c1011b8d3984246553642358e19188367ba891962586
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDM0OkEwMkMzOkQ2NTY1ODoxMjI5NEMxOjZBNTU1RkVFIiwidmlzaXRvcl9pZCI6IjE3Njg3ODY2ODUyNTk1MDU2NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf4d5c63cd4e7a2c68d8d1f5d600f350c3db7e5381f114751042f9c8e1cb71233
hovercard-subject-tagpull_request:413448969
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/19/files
twitter:imagehttps://avatars.githubusercontent.com/u/3749000?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3749000?s=400&v=4
og:image:altThe external queries tests run in a fixed directory. This is arguably fine when run as part of CI, but if the tests are run multiple times locally then they start to interfere with each other. To s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
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
release8201d0b7bc32164c4662de52242e463a356df543
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/19/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F19%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F19%2Ffiles
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/19/files
Reloadhttps://github.com/github/codeql-action/pull/19/files
Reloadhttps://github.com/github/codeql-action/pull/19/files
Please reload this pagehttps://github.com/github/codeql-action/pull/19/files
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 472 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 25 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 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 and quality 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
robertbrignullhttps://github.com/robertbrignull
masterhttps://github.com/github/codeql-action/tree/master
external_queries_tmp_dirhttps://github.com/github/codeql-action/tree/external_queries_tmp_dir
Conversation 1 https://github.com/github/codeql-action/pull/19
Findings https://github.com/github/codeql-action/pull/19/findings
Commits 2 https://github.com/github/codeql-action/pull/19/commits
Checks 0 https://github.com/github/codeql-action/pull/19/checks
Files changed 5 https://github.com/github/codeql-action/pull/19/files
Use tmp dir for external queries test https://github.com/github/codeql-action/pull/19/files#top
Show all changes 2 commits https://github.com/github/codeql-action/pull/19/files
ab918b6 use tmp dir for external queries test robertbrignull May 5, 2020 https://github.com/github/codeql-action/pull/19/commits/ab918b676bd014a667688f1500e4e1b86ad8cc99
49575f8 Merge branch 'master' into external_queries_tmp_dir robertbrignull May 11, 2020 https://github.com/github/codeql-action/pull/19/commits/49575f87c4fb33eb89a81446d249ef98956a8c5f
Clear filters https://github.com/github/codeql-action/pull/19/files
Please reload this pagehttps://github.com/github/codeql-action/pull/19/files
Please reload this pagehttps://github.com/github/codeql-action/pull/19/files
external-queries.js https://github.com/github/codeql-action/pull/19/files#diff-0963952ed607485c3aea95643b20a28098c4c920d7f329a7d9affb2acfd8a760
util.js https://github.com/github/codeql-action/pull/19/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
external-queries.test.ts https://github.com/github/codeql-action/pull/19/files#diff-21d7423b129cce5b52ff1b7fc283a4e816db4bbffe98d5789a7518fe59b93d9f
external-queries.ts https://github.com/github/codeql-action/pull/19/files#diff-c208dffffadf15910c92ca478f3f0d68751d419df7617081673e33bfae5888df
util.ts https://github.com/github/codeql-action/pull/19/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
lib/external-queries.jshttps://github.com/github/codeql-action/pull/19/files#diff-0963952ed607485c3aea95643b20a28098c4c920d7f329a7d9affb2acfd8a760
View file https://github.com/github/codeql-action/blob/49575f87c4fb33eb89a81446d249ef98956a8c5f/lib/external-queries.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/19/files
lib/util.jshttps://github.com/github/codeql-action/pull/19/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
View file https://github.com/github/codeql-action/blob/49575f87c4fb33eb89a81446d249ef98956a8c5f/lib/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/19/files
src/external-queries.test.tshttps://github.com/github/codeql-action/pull/19/files#diff-21d7423b129cce5b52ff1b7fc283a4e816db4bbffe98d5789a7518fe59b93d9f
View file https://github.com/github/codeql-action/blob/49575f87c4fb33eb89a81446d249ef98956a8c5f/src/external-queries.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/19/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/19/files#diff-21d7423b129cce5b52ff1b7fc283a4e816db4bbffe98d5789a7518fe59b93d9f
src/external-queries.tshttps://github.com/github/codeql-action/pull/19/files#diff-c208dffffadf15910c92ca478f3f0d68751d419df7617081673e33bfae5888df
View file https://github.com/github/codeql-action/blob/49575f87c4fb33eb89a81446d249ef98956a8c5f/src/external-queries.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/19/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/19/files#diff-c208dffffadf15910c92ca478f3f0d68751d419df7617081673e33bfae5888df
https://github.com/github/codeql-action/pull/19/files#diff-c208dffffadf15910c92ca478f3f0d68751d419df7617081673e33bfae5888df
src/util.tshttps://github.com/github/codeql-action/pull/19/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
View file https://github.com/github/codeql-action/blob/49575f87c4fb33eb89a81446d249ef98956a8c5f/src/util.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/19/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/19/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
https://github.com/github/codeql-action/pull/19/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
https://github.com/github/codeql-action/pull/19/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
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.