René's URL Explorer Experiment


Title: Convert remaining `{go,swift,ruby}-code-scanning.qls` query tests to `.qlref` by d10c · Pull Request #19817 · github/codeql · GitHub

Open Graph Title: Convert remaining `{go,swift,ruby}-code-scanning.qls` query tests to `.qlref` by d10c · Pull Request #19817 · github/codeql

X Title: Convert remaining `{go,swift,ruby}-code-scanning.qls` query tests to `.qlref` by d10c · Pull Request #19817 · github/codeql

Description: Converts the remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref. Example prior work: #18848 In the Go IncorrectIntegerConversion case, the #select, edges, and nodes query predicates have different results depending on whether the Go source is compiled under 64-bit or 32-bit mode. So I have filtered out those predicates using a custom test post-processor. Also, in the Ruby case I've made the utils/test/PrettyPrintModels.ql test postprocessor available; Swift apparently doesn't support the Models-as-Data extensible predicates, so I couldn't fit its existing MaD support into the codeql.dataflow.test.ProvenancePathGraph::TestPostProcessing::TranslateProvenanceResults<> interface. Anecdotally, the Copilot "Next Edit Suggestion" feature had some marginal benefit for this PR.

Open Graph Description: Converts the remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref. Example prior work: #18848 In the Go IncorrectIntegerConversion case, the #select, edges, and nodes query predicates ...

X Description: Converts the remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref. Example prior work: #18848 In the Go IncorrectIntegerConversion case, the #select, edges, and nodes query predicates ...

Opengraph URL: https://github.com/github/codeql/pull/19817

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e5ecf3c2-5eaf-6f41-7d77-f5e6b4f435e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8856:2D610E:186CE04:21A7412:6A573258
html-safe-nonceca101e0277917250f0bc62169823141361b9027f916cd6ffb6e05f913e5ba74c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODU2OjJENjEwRToxODZDRTA0OjIxQTc0MTI6NkE1NzMyNTgiLCJ2aXNpdG9yX2lkIjoiODI4Nzg5NzUwNDA5MzUxNjM3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1e9db1ffad1648888d92a0a2df369e5526f9e077a3e3420f7966b5482e9df291
hovercard-subject-tagpull_request:2604203941
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/pull/19817/files
twitter:imagehttps://avatars.githubusercontent.com/u/9970661?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9970661?s=400&v=4
og:image:altConverts the remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref. Example prior work: #18848 In the Go IncorrectIntegerConversion case, the #select, edges, and nodes query predicates ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
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
release2576d1f0198cf1588faf2edf27f1ed120903be10
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/19817/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F19817%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%2Fpull%2F19817%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
Reloadhttps://github.com/github/codeql/pull/19817/files
Reloadhttps://github.com/github/codeql/pull/19817/files
Reloadhttps://github.com/github/codeql/pull/19817/files
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
github https://github.com/github
codeqlhttps://github.com/github/codeql
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql
Fork 2k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Star 9.8k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Code https://github.com/github/codeql
Issues 992 https://github.com/github/codeql/issues
Pull requests 430 https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality 0 https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Code https://github.com/github/codeql
Issues https://github.com/github/codeql/issues
Pull requests https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%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%2Fissues%2Fnew%2Fchoose
d10chttps://github.com/d10c
github:mainhttps://github.com/github/codeql/tree/main
d10c:d10c/convert-tests-to-qlrefhttps://github.com/d10c/codeql/tree/d10c/convert-tests-to-qlref
Conversation 11 https://github.com/github/codeql/pull/19817
Findings https://github.com/github/codeql/pull/19817/findings
Commits 9 https://github.com/github/codeql/pull/19817/commits
Checks 26 https://github.com/github/codeql/pull/19817/checks
Files changed https://github.com/github/codeql/pull/19817/files
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
Convert remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref https://github.com/github/codeql/pull/19817/files#top
Show all changes 9 commits https://github.com/github/codeql/pull/19817/files
76a3306 Go: convert UncontrolledAllocationSize test to .qlref d10c Jun 19, 2025 https://github.com/github/codeql/pull/19817/commits/76a3306c6338fb1fac288b8c33e7d838cfb59aa1
cf92b0e Go: convert IncorrectIntegerConversion test to .qlref d10c Jun 19, 2025 https://github.com/github/codeql/pull/19817/commits/cf92b0e91b75c4177f0d9f4eb535bfa654bb0079
807c769 Ruby: add PrettyPrintModels test postprocessor d10c Jun 19, 2025 https://github.com/github/codeql/pull/19817/commits/807c7691c653867f3d222935684af857409b98bf
e329820 Ruby: convert CommandInjection test to .qlref d10c Jun 19, 2025 https://github.com/github/codeql/pull/19817/commits/e32982057cc09062586399bebafbe9fb3186bf5f
92a48cd Ruby: convert InsecureDownload test to .qlref d10c Jun 19, 2025 https://github.com/github/codeql/pull/19817/commits/92a48cdc2b4238d008fa197e4a3392cdb70e28f2
7615ec7 Swift: convert PredicateInjection test to .qlref d10c Jun 20, 2025 https://github.com/github/codeql/pull/19817/commits/7615ec7a240897afbad78071f87ebace79420271
895a8fc Swift: convert CleartextLogging test to .qlref d10c Jun 20, 2025 https://github.com/github/codeql/pull/19817/commits/895a8fcb0f7c3fbcef75353aa56ff67fb26f1de7
aa3e011 Swift: convert PathInjection test to .qlref d10c Jun 20, 2025 https://github.com/github/codeql/pull/19817/commits/aa3e0116c1ba7556b262975573517ed20c3b0a0f
35a48e7 Swift: convert XXE test to .qlref d10c Jun 20, 2025 https://github.com/github/codeql/pull/19817/commits/35a48e7f415b1867daf262d48608bad701722034
Clear filters https://github.com/github/codeql/pull/19817/files
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
FilterTestResults.ql https://github.com/github/codeql/pull/19817/files#diff-75635c412a885a959585bb1da61f109ce9b442606193e676c1cc599780bfad99
IncorrectIntegerConversion.expected https://github.com/github/codeql/pull/19817/files#diff-c5b51d84efcab944e62f436d4b5794c806cb88ed45e956c7b7056599266b453a
IncorrectIntegerConversion.go https://github.com/github/codeql/pull/19817/files#diff-04a21fa2636c40b3aacfe4ced9308275ec88b1f4560aa37dde5caa2914f5a66e
IncorrectIntegerConversion.ql https://github.com/github/codeql/pull/19817/files#diff-ee2d98c59bd6b431773012a7a1d990a749067bb10e5fc7776a717fc85400b6d4
IncorrectIntegerConversion.qlref https://github.com/github/codeql/pull/19817/files#diff-2fcc0a6e6bf7fd754eb4d8fe224c85b84ee8f24043fd3cfef93005a8e262976a
Test32BitArchitectureBuildConstraintInFileName_386.go https://github.com/github/codeql/pull/19817/files#diff-5870ad4eec5319559b87d6981eb4d254b761ff28bcde9389ab9a456dd11c0870
Test32BitArchitectureBuildConstraints.go https://github.com/github/codeql/pull/19817/files#diff-71bed6894324444b590eb3ec80aa6726582efc43f3e4fd50acc2980c02002ca4
Test64BitArchitectureBuildConstraintInFileName_amd64.go https://github.com/github/codeql/pull/19817/files#diff-25ce802959491b3acfd042ca9e7a39577f4ce667acc62fd17fa9ab0d1120db4f
Test64BitArchitectureBuildConstraints.go https://github.com/github/codeql/pull/19817/files#diff-71817feed2bb161adec684f04c9e719c767f8a739bc47be2a888f4535981fccc
TestNoArchitectureBuildConstraints.go https://github.com/github/codeql/pull/19817/files#diff-0bd31a5e41979b57e00c0105fc44066a1a8d954c00247abf3d0470b724d30ceb
TestOldBuildConstraints.go https://github.com/github/codeql/pull/19817/files#diff-18bcee0a79a9bf840401b311eee21a1a8ba395d8482c834796c5e3beb3086231
UncontrolledAllocationSize.expected https://github.com/github/codeql/pull/19817/files#diff-2b32f75a5f23ad4d9717a65838686d72c2a3ca793dd38b77a11db6f22fa9f7e8
UncontrolledAllocationSize.ql https://github.com/github/codeql/pull/19817/files#diff-a5b6ff31e911ef88dfc77799554df774e421554f67d76a478ed636d14b5ad7f7
UncontrolledAllocationSize.qlref https://github.com/github/codeql/pull/19817/files#diff-b7ed1c7f7bad5f46eb19075ab781b1e08bf94f089682f5681b4b1b0ecff6b9c4
UncontrolledAllocationSizeBad.go https://github.com/github/codeql/pull/19817/files#diff-ae46261612b66e32a9863753bcaf5349ccdd6e554a5c82c255682b6689dfa4a5
PrettyPrintModels.ql https://github.com/github/codeql/pull/19817/files#diff-1a8981599812598523852994c09f33c86245094eba1c6032f29bc5264b4b209c
CommandInjection.expected https://github.com/github/codeql/pull/19817/files#diff-e7ce53ba07a641f60016746422e2496114f4b4c2e560e3c18ec8ded0e6bc7026
CommandInjection.ql https://github.com/github/codeql/pull/19817/files#diff-b45916850f88d3f048ae5f688af07c8ff7c64a1798513f9b77f898f183595e5d
CommandInjection.qlref https://github.com/github/codeql/pull/19817/files#diff-a24b2e385b51163d110330af009349d8a1fbad7bb2318827d83f843f755b662a
CommandInjection.rb https://github.com/github/codeql/pull/19817/files#diff-f9bb0d908af6bb98cd28c2f660da6388ce6388aba6c4f0d70a0f603dd75c2f1e
InsecureDownload.expected https://github.com/github/codeql/pull/19817/files#diff-5d732981a7e5ba9b6bd5c9f2708d0b1c8db7a1a81e93adbd6ca4aa20d3ea0098
InsecureDownload.ql https://github.com/github/codeql/pull/19817/files#diff-e1bf298353b629384a44619abc7d8fd13e7a8c41f873c21d2e9da2d5b8e680a4
InsecureDownload.qlref https://github.com/github/codeql/pull/19817/files#diff-ac2d22b5a7d1b054310b994848ef0a36cb821186fb4e75e52860afc7d5ce19f2
insecure_download.rb https://github.com/github/codeql/pull/19817/files#diff-39f884e16314482c00723d1862664d0912840505202a1836ad8b909e9951d110
PathInjectionTest.expected https://github.com/github/codeql/pull/19817/files#diff-5a6427a9d8fe6241d43940b2fce078e9efebbecbf4c3c816353ee1094146f2d6
PathInjectionTest.ql https://github.com/github/codeql/pull/19817/files#diff-8f37617c32e9a1a370ffa872a9b67887a24a0c65a2f976cdc1da895687fc377f
PathInjectionTest.qlref https://github.com/github/codeql/pull/19817/files#diff-0edf80d9b42025dd05fe825072c86a3e34fd68f2528ca9376b505338ed30ff60
testPathInjection.swift https://github.com/github/codeql/pull/19817/files#diff-bafd2c38d5d3302be3f8d8feaa2f2d35c4b710b7dc31376600fc5c57b4822b7f
CleartextLoggingTest.expected https://github.com/github/codeql/pull/19817/files#diff-08b4e2b94705cb2a7b1eed7a413a1d931253eed032ccbfa49c2186f93991300c
CleartextLoggingTest.ql https://github.com/github/codeql/pull/19817/files#diff-d31465f2a5e0bbab5e59f9ac5b32aa2cef59d3359503c3161c4d8a9aa2d6e013
CleartextLoggingTest.qlref https://github.com/github/codeql/pull/19817/files#diff-8d02e2cc49c87fd25650cf46a693507e6ac68c0fca68dd8486f5a3417cfb6805
cleartextLoggingTest.swift https://github.com/github/codeql/pull/19817/files#diff-4afe8433100266fcccd92a9ce13e8e85e4bf538cbd0d3d17922183acbc8b5c13
XXETest.expected https://github.com/github/codeql/pull/19817/files#diff-39d209aefae6b838ea009684b900abd76cf127e3f47c63683d5053ad55d4958a
XXETest.ql https://github.com/github/codeql/pull/19817/files#diff-86c8a5c91d5646c3d057cb35de66e843d1b6afa68649b2be3d48b36e71e5953b
XXETest.qlref https://github.com/github/codeql/pull/19817/files#diff-00317bf4547e5d3aa790507befb50dd8c73260daa417854a4067c159cef8f713
testAEXMLDocumentXXE.swift https://github.com/github/codeql/pull/19817/files#diff-51327e5a90fc85f788b9494429f40325213fd5ba5f3ef25bc3f83713ee46af1d
testXMLDocumentXXE.swift https://github.com/github/codeql/pull/19817/files#diff-614c77d95e4a05086f58eabf3c707374a60f79988c25f52f71d3ddc93ed16743
testXMLParserXXE.swift https://github.com/github/codeql/pull/19817/files#diff-f463a054263da4e2b5f23ad0825c04f7630d92b58738737a65276817b67cff7b
PredicateInjectionTest.expected https://github.com/github/codeql/pull/19817/files#diff-478ccccbad72b56e14155c9fa75125f85010502477d65a19b51e1c0ccf713c18
PredicateInjectionTest.ql https://github.com/github/codeql/pull/19817/files#diff-b870b140efb00524a290e4ef8e4c63add0093eb90c98d34d00446df49df14ffb
PredicateInjectionTest.qlref https://github.com/github/codeql/pull/19817/files#diff-9625569dc1fb52b976f6dc4839be27b2e9381cc29891af9cbd387eb1d87d3885
predicateInjection.swift https://github.com/github/codeql/pull/19817/files#diff-f2464e3d2ba179006eef287ccba9bbb3b715632276e30fe2de917cd76bde2b62
https://github.com/github/codeql/blob/main/CODEOWNERS#L10
go/ql/test/query-tests/Security/CWE-681/FilterTestResults.qlhttps://github.com/github/codeql/pull/19817/files#diff-75635c412a885a959585bb1da61f109ce9b442606193e676c1cc599780bfad99
View file https://github.com/d10c/codeql/blob/35a48e7f415b1867daf262d48608bad701722034/go/ql/test/query-tests/Security/CWE-681/FilterTestResults.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/19817/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
https://github.com/github/codeql/blob/main/CODEOWNERS#L10
go/ql/test/query-tests/Security/CWE-681/IncorrectIntegerConversion.expectedhttps://github.com/github/codeql/pull/19817/files#diff-c5b51d84efcab944e62f436d4b5794c806cb88ed45e956c7b7056599266b453a
View file https://github.com/d10c/codeql/blob/35a48e7f415b1867daf262d48608bad701722034/go/ql/test/query-tests/Security/CWE-681/IncorrectIntegerConversion.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/19817/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
Please reload this pagehttps://github.com/github/codeql/pull/19817/files
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.