René's URL Explorer Experiment


Title: Stack overflow analyzing script snippets · Issue #2056 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: Stack overflow analyzing script snippets · Issue #2056 · PowerShell/PSScriptAnalyzer

X Title: Stack overflow analyzing script snippets · Issue #2056 · PowerShell/PSScriptAnalyzer

Description: This afternoon I was writing a inline PowerShell script in a GitHub Actions workflow whose intention is to lint the usage of PowerShell in GitHub Actions workflows (♾), and while testing it locally with a slightly modified version I foun...

Open Graph Description: This afternoon I was writing a inline PowerShell script in a GitHub Actions workflow whose intention is to lint the usage of PowerShell in GitHub Actions workflows (♾), and while testing it locally...

X Description: This afternoon I was writing a inline PowerShell script in a GitHub Actions workflow whose intention is to lint the usage of PowerShell in GitHub Actions workflows (♾), and while testing it locally...

Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2056

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stack overflow analyzing script snippets","articleBody":"This afternoon I was writing a inline PowerShell script in a GitHub Actions workflow whose intention is to lint the usage of PowerShell in GitHub Actions workflows (♾), and while testing it locally with a slightly modified version I found I hit a stack overflow that terminated my pwsh session in Windows Terminal.\n\nI can't reproduce it in GitHub Actions itself for some reason, but I can on my own laptop.\n\nSteps to reproduce\n------------------\n\n1. Clone https://github.com/martincostello/github-automation/commit/5563b3cf300d4931704249525361f5cd510255d3\n2. Run `lint.ps1`\n\nExpected behavior\n-----------------\n\nThe script runs successfully.\n\nActual behavior\n---------------\n\n```none\nLinting actions/dotnet-release/action.yml...\nLinting actions/dotnet-upgrade-report/action.yml...\nLinting actions/dotnet-version-report/action.yml...\nLinting actions/get-dotnet-repos/action.yml...\nLinting actions/get-rebase-repos/action.yml...\nLinting actions/get-sdk-repos/action.yml...\nLinting actions/is-dotnet-change-available/action.yml...\nLinting actions/lint-workflow-powershell/action.yml...\nLinting .github/workflows/acr-housekeeping.yml...\nStack overflow.\nRepeated 252 times:\n--------------------------------\n   at System.Reflection.RuntimeAssembly.\u003cInternalLoad>g____PInvoke|49_0(System.Reflection.NativeAssemblyNameParts*, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.StackCrawlMarkHandle, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack)\n   at System.Reflection.RuntimeAssembly.InternalLoad(System.Reflection.AssemblyName, System.Threading.StackCrawlMark ByRef, System.Runtime.Loader.AssemblyLoadContext, System.Reflection.RuntimeAssembly, Boolean)\n   at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(System.Reflection.Assembly, System.Globalization.CultureInfo, System.Version, Boolean)\n   at System.Resources.ManifestBasedResourceGroveler.InternalGetSatelliteAssembly(System.Reflection.Assembly, System.Globalization.CultureInfo, System.Version)\n   at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(System.Globalization.CultureInfo)\n   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2\u003cSystem.String,System.Resources.ResourceSet>, Boolean, Boolean)\n   at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)\n   at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)\n   at System.Management.Automation.ErrorCategoryInfo.Ellipsize(System.Globalization.CultureInfo, System.String)\n   at System.Management.Automation.ScriptBlock.GetContextFromTLS()\n   at System.Management.Automation.ScriptBlock.InvokeAsDelegateHelper(System.Object, System.Object, System.Object[])\n   at DynamicClass.lambda_method523(System.Runtime.CompilerServices.Closure, System.Object, System.ResolveEventArgs)\n   at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(System.ResolveEventHandler, System.Reflection.RuntimeAssembly, System.String)\n   at System.Reflection.RuntimeAssembly.\u003cInternalLoad>g____PInvoke|49_0(System.Reflection.NativeAssemblyNameParts*, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.StackCrawlMarkHandle, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack)\n--------------------------------\n   at System.Reflection.RuntimeAssembly.\u003cInternalLoad>g____PInvoke|49_0(System.Reflection.NativeAssemblyNameParts*, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.StackCrawlMarkHandle, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack)\n   at System.Reflection.RuntimeAssembly.InternalLoad(System.Reflection.AssemblyName, System.Threading.StackCrawlMark ByRef, System.Runtime.Loader.AssemblyLoadContext, System.Reflection.RuntimeAssembly, Boolean)\n   at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(System.Reflection.Assembly, System.Globalization.CultureInfo, System.Version, Boolean)\n   at System.Resources.ManifestBasedResourceGroveler.InternalGetSatelliteAssembly(System.Reflection.Assembly, System.Globalization.CultureInfo, System.Version)\n   at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(System.Globalization.CultureInfo)\n   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2\u003cSystem.String,System.Resources.ResourceSet>, Boolean, Boolean)\n   at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)\n   at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)\n   at Microsoft.PowerShell.Commands.CertificateProvider.InitializeDefaultDrives()\n   at System.Management.Automation.SessionStateInternal.InitializeProvider(System.Management.Automation.Provider.CmdletProvider, System.Management.Automation.ProviderInfo, System.Management.Automation.CmdletProviderContext)\n   at System.Management.Automation.SessionStateInternal.NewProvider(System.Management.Automation.ProviderInfo)\n   at System.Management.Automation.SessionStateInternal.AddProvider(System.Type, System.String, System.String, System.Management.Automation.PSSnapInInfo, System.Management.Automation.PSModuleInfo)\n   at System.Management.Automation.SessionStateInternal.AddSessionStateEntry(System.Management.Automation.Runspaces.SessionStateProviderEntry)\n   at System.Management.Automation.Runspaces.InitialSessionState.Bind_LoadProviders(System.Management.Automation.SessionStateInternal)\n   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)\n   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)\n   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)\n   at System.Threading.Tasks.Task.WrappedTryRunInline()\n   at System.Threading.Tasks.Task.WaitAllCore(System.ReadOnlySpan`1\u003cSystem.Threading.Tasks.Task>, Int32, System.Threading.CancellationToken)\n   at System.Threading.Tasks.Task.WaitAll(System.Threading.Tasks.Task[])\n   at System.Threading.Tasks.Parallel.Invoke(System.Threading.Tasks.ParallelOptions, System.Action[])\n   at System.Management.Automation.Runspaces.InitialSessionState.Bind(System.Management.Automation.ExecutionContext, Boolean, System.Management.Automation.PSModuleInfo, Boolean, Boolean, Boolean)\n   at System.Management.Automation.AutomationEngine..ctor(System.Management.Automation.Host.PSHost, System.Management.Automation.Runspaces.InitialSessionState)\n   at System.Management.Automation.Runspaces.LocalRunspace.DoOpenHelper()\n   at System.Management.Automation.Runspaces.RunspaceBase.CoreOpen(Boolean)\n   at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.CreateRunspace()\n   at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.OpenHelper()\n   at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.CoreOpen(Boolean, System.AsyncCallback, System.Object)\n   at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.Open()\n   at Microsoft.Windows.PowerShell.ScriptAnalyzer.CommandInfoCache..ctor()\n   at Microsoft.Windows.PowerShell.ScriptAnalyzer.Helper+\u003c>c.\u003c.ctor>b__24_0()\n   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ViaFactory(System.Threading.LazyThreadSafetyMode)\n   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ExecutionAndPublication(System.LazyHelper, Boolean)\n   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CreateValue()\n   at Microsoft.Windows.PowerShell.ScriptAnalyzer.Helper.get_CommandInfoCache()\n   at Microsoft.Windows.PowerShell.ScriptAnalyzer.Helper.GetCommandInfo(System.String, System.Nullable`1\u003cSystem.Management.Automation.CommandTypes>, Boolean)\n   at Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.AvoidAlias+\u003cAnalyzeScript>d__9.MoveNext()\n   at System.Collections.Generic.List`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(System.Collections.Generic.IEnumerable`1\u003cSystem.__Canon>)\n   at System.Linq.Enumerable.ToList[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1\u003cSystem.__Canon>)\n   at Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer+\u003c>c__DisplayClass84_1.\u003cAnalyzeSyntaxTree>b__2()\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\n   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()\n\n[process exited with code 3221225725 (0xc00000fd)]\n```\n\nEnvironment data\n----------------\n\n```PowerShell\n> $PSVersionTable\n\nName                           Value\n----                           -----\nPSVersion                      7.5.0\nPSEdition                      Core\nGitCommitId                    7.5.0\nOS                             Microsoft Windows 10.0.22631\nPlatform                       Win32NT\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\nWSManStackVersion              3.0\n\n> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }\n1.23.0\n```\n","author":{"url":"https://github.com/martincostello","@type":"Person","name":"martincostello"},"datePublished":"2025-02-06T18:44:57Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2056"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:49dc05c6-a0cf-0e79-7ee4-cf6bba92a4cf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAB84:3D0013:135E4DB:1B65960:6AFCE24E
html-safe-noncee7175694504438885c16916e95729791c592a37330fa7a473ad8c82b2de6a0f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjg0OjNEMDAxMzoxMzVFNERCOjFCNjU5NjA6NkFGQ0UyNEUiLCJ2aXNpdG9yX2lkIjoiNjI5NTk1NjU2NDg4MDQ1MDEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacff0ada2044257c17b5593e43765b011e9f65dbc70b0b2afd522a94bc8daebfd9
hovercard-subject-tagissue:2836317868
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/2056/issue_layout
twitter:imagehttps://opengraph.githubassets.com/19dbdf6fe0f1ae00d2acb06bb010200fa3288e8a08b563b71c64474eed099129/PowerShell/PSScriptAnalyzer/issues/2056
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/19dbdf6fe0f1ae00d2acb06bb010200fa3288e8a08b563b71c64474eed099129/PowerShell/PSScriptAnalyzer/issues/2056
og:image:altThis afternoon I was writing a inline PowerShell script in a GitHub Actions workflow whose intention is to lint the usage of PowerShell in GitHub Actions workflows (♾), and while testing it locally...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemartincostello
hostnamegithub.com
expected-hostnamegithub.com
None0c05b7eb5b95e29725d01bb1f560a020e3fafd0f033c6b9ed3918fa3161254dd
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id33149177
octolytics-dimension-repository_nwoPowerShell/PSScriptAnalyzer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33149177
octolytics-dimension-repository_network_root_nwoPowerShell/PSScriptAnalyzer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release79d9154e55368884c8c93766ba4fee076343d37f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/issues/2056#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F2056
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F2056
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/2056
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/2056
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/2056
PowerShellhttps://github.com/PowerShell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
Codehttps://github.com/PowerShell/PSScriptAnalyzer
Issues407 (407)https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests34 (34)https://github.com/PowerShell/PSScriptAnalyzer/pulls
Discussionshttps://github.com/PowerShell/PSScriptAnalyzer/discussions
Actionshttps://github.com/PowerShell/PSScriptAnalyzer/actions
Projectshttps://github.com/PowerShell/PSScriptAnalyzer/projects
Wikihttps://github.com/PowerShell/PSScriptAnalyzer/wiki
Security and qualityhttps://github.com/PowerShell/PSScriptAnalyzer/security
Insightshttps://github.com/PowerShell/PSScriptAnalyzer/insights
https://github.com/PowerShell/PSScriptAnalyzer
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/2056
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/2056
Stack overflow analyzing script snippetshttps://github.com/PowerShell/PSScriptAnalyzer/issues/2056#top
https://github.com/martincostello
Martin Costello (martincostello)https://github.com/martincostello
on Feb 6, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2056#issue-2836317868
martincostello/github-automation@5563b3chttps://github.com/martincostello/github-automation/commit/5563b3cf300d4931704249525361f5cd510255d3
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Feb 20, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2056#issuecomment-2672226314
https://github.com/martincostello
Martin Costello (martincostello)https://github.com/martincostello
on Feb 20, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2056#issuecomment-2672241474
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Mar 12, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2056#issuecomment-2719139834
https://github.com/martincostello
Martin Costello (martincostello)https://github.com/martincostello
on Mar 12, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2056#issuecomment-2719235661
Halhttps://www.youtube.com/watch?v=_UZFI-8D5uA
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Mar 13, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2056#issuecomment-2722604862
PowerShell/PowerShell#12865https://github.com/PowerShell/PowerShell/pull/12865
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/2056
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/2056
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.