René's URL Explorer Experiment


Title: context.runAttempt is undefined using github-script v7 · Issue #566 · actions/github-script · GitHub

Open Graph Title: context.runAttempt is undefined using github-script v7 · Issue #566 · actions/github-script

X Title: context.runAttempt is undefined using github-script v7 · Issue #566 · actions/github-script

Description: Describe the bug Attempting to access GITHUB_RUN_ATTEMPT using context.runAttempt gives back undefined To Reproduce Steps to reproduce the behavior: Create following test workflow and run it on: workflow_dispatch: jobs: deploy: runs-on: ...

Open Graph Description: Describe the bug Attempting to access GITHUB_RUN_ATTEMPT using context.runAttempt gives back undefined To Reproduce Steps to reproduce the behavior: Create following test workflow and run it on: wo...

X Description: Describe the bug Attempting to access GITHUB_RUN_ATTEMPT using context.runAttempt gives back undefined To Reproduce Steps to reproduce the behavior: Create following test workflow and run it on: wo...

Opengraph URL: https://github.com/actions/github-script/issues/566

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"context.runAttempt is undefined using github-script v7","articleBody":"**Describe the bug**\n\nAttempting to access GITHUB_RUN_ATTEMPT using context.runAttempt gives back undefined \n\n**To Reproduce**\nSteps to reproduce the behavior:\n\nCreate following test workflow and run it\n```\non:\n  workflow_dispatch:\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    timeout-minutes: 30\n    steps:\n\n      - uses: actions/github-script@v7\n        with:\n          script: |\n            const runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);\n            core.warning(`context.runAttempt content: ${context.runAttempt} - ${runAttempt}`);\n```\n\nResult in:\nWarning: context.runAttempt content: undefined - 1\n\n**Expected behavior**\n\ncontext.runAttempt should hold the correct value according to the link https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts used in README.md\n\nAfter looking at the actions/toolkit repository i wonder if the version linked was actually released at all, the actions/toolkit repo don't have any tags for `@actions/github-6.0.0` and the release in [npmjs](https://www.npmjs.com/package/@actions/github/v/6.0.0?activeTab=versions) date back to 10/10/2023 while the commit adding runAttempt date 28/10/2023 ..\n","author":{"url":"https://github.com/bplessis-swi","@type":"Person","name":"bplessis-swi"},"datePublished":"2025-03-20T11:09:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/566/github-script/issues/566"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:843843b4-55a4-7b36-16f3-f6aedc4a064d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9244:320964:D467FC:11CF9E0:6A4C5B79
html-safe-nonce5dde9b10038de323f3166b772ceb40b3c6504651c4b4be74fcdfb7d84bd0ec4f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjQ0OjMyMDk2NDpENDY3RkM6MTFDRjlFMDo2QTRDNUI3OSIsInZpc2l0b3JfaWQiOiIzNDIxNzEyMDE3NDI0OTMxNzA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac032dae026522f706235f2817dcc9b4529088687f81ac8ac07e6e5d4ddd3c2941
hovercard-subject-tagissue:2935042342
github-keyboard-shortcutsrepository,issues,actions,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/actions/github-script/566/issue_layout
twitter:imagehttps://opengraph.githubassets.com/db189613862700e4afdc6ed00a1270186b448d75c6755d1dd193992d59e3a6d7/actions/github-script/issues/566
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db189613862700e4afdc6ed00a1270186b448d75c6755d1dd193992d59e3a6d7/actions/github-script/issues/566
og:image:altDescribe the bug Attempting to access GITHUB_RUN_ATTEMPT using context.runAttempt gives back undefined To Reproduce Steps to reproduce the behavior: Create following test workflow and run it on: wo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebplessis-swi
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
go-importgithub.com/actions/github-script git https://github.com/actions/github-script.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id205262760
octolytics-dimension-repository_nwoactions/github-script
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id205262760
octolytics-dimension-repository_network_root_nwoactions/github-script
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
release14099438da5379150f15a2892474c7c7e6c0e55e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/actions/github-script/issues/566#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F566
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F566
Sign up https://redirect.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=actions%2Fgithub-script
Reloadhttps://redirect.github.com/actions/github-script/issues/566
Reloadhttps://redirect.github.com/actions/github-script/issues/566
Reloadhttps://redirect.github.com/actions/github-script/issues/566
Please reload this pagehttps://redirect.github.com/actions/github-script/issues/566
actions https://redirect.github.com/actions
github-scripthttps://redirect.github.com/actions/github-script
Notifications https://redirect.github.com/login?return_to=%2Factions%2Fgithub-script
Fork 572 https://redirect.github.com/login?return_to=%2Factions%2Fgithub-script
Star 5k https://redirect.github.com/login?return_to=%2Factions%2Fgithub-script
Code https://redirect.github.com/actions/github-script
Issues 54 https://redirect.github.com/actions/github-script/issues
Pull requests 35 https://redirect.github.com/actions/github-script/pulls
Discussions https://redirect.github.com/actions/github-script/discussions
Actions https://redirect.github.com/actions/github-script/actions
Security and quality 0 https://redirect.github.com/actions/github-script/security
Insights https://redirect.github.com/actions/github-script/pulse
Code https://redirect.github.com/actions/github-script
Issues https://redirect.github.com/actions/github-script/issues
Pull requests https://redirect.github.com/actions/github-script/pulls
Discussions https://redirect.github.com/actions/github-script/discussions
Actions https://redirect.github.com/actions/github-script/actions
Security and quality https://redirect.github.com/actions/github-script/security
Insights https://redirect.github.com/actions/github-script/pulse
context.runAttempt is undefined using github-script v7https://redirect.github.com/actions/github-script/issues/566#top
dependenciesPull requests that update a dependency filehttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22dependencies%22
https://github.com/bplessis-swi
bplessis-swihttps://github.com/bplessis-swi
on Mar 20, 2025https://github.com/actions/github-script/issues/566#issue-2935042342
https://github.com/actions/toolkit/blob/main/packages/github/src/context.tshttps://github.com/actions/toolkit/blob/main/packages/github/src/context.ts
npmjshttps://www.npmjs.com/package/@actions/github/v/6.0.0?activeTab=versions
dependenciesPull requests that update a dependency filehttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22dependencies%22
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.