René's URL Explorer Experiment


Title: Syntax Error only on Actions? · Issue #567 · actions/github-script · GitHub

Open Graph Title: Syntax Error only on Actions? · Issue #567 · actions/github-script

X Title: Syntax Error only on Actions? · Issue #567 · actions/github-script

Description: Describe the bug I've been testing very thoroughly some code that only has a Syntax Error on an actions/github-script@v7 run. To Reproduce The following script fails: Full file name: Clippy changelog check on: merge_group: pull_request: ...

Open Graph Description: Describe the bug I've been testing very thoroughly some code that only has a Syntax Error on an actions/github-script@v7 run. To Reproduce The following script fails: Full file name: Clippy changel...

X Description: Describe the bug I've been testing very thoroughly some code that only has a Syntax Error on an actions/github-script@v7 run. To Reproduce The following script fails: Full file name: Clippy cha...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Syntax Error only on Actions?","articleBody":"**Describe the bug**\nI've been testing very thoroughly some code that only has a Syntax Error on an actions/github-script@v7 run.\n\n**To Reproduce**\nThe following script fails:\n\u003cdetails>\n\u003csummary>\nFull file\n\u003c/summary>\n\n```yaml\n\nname: Clippy changelog check\n\non:\n  merge_group:\n  pull_request:\n    types: [opened, reopened, synchronize, edited]\n\nconcurrency:\n  # For a given workflow, if we push to the same PR, cancel all previous builds on that PR.\n  # If the push is not attached to a PR, we will cancel all builds on the same branch.\n  group: \"${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\"\n  cancel-in-progress: true\n\njobs:\n\n  changelog:\n    runs-on: ubuntu-latest\n\n    defaults:\n      run:\n        shell: bash\n\n    steps:\n    # Run\n    - name: Check Changelog\n      if: ${{ github.event_name == 'pull_request' }}\n      run: |\n        body=$(curl -H \"Authorization: token ${{ secrets.GITHUB_TOKEN }}\" -s \"https://api.github.com/repos/blyxyas/rust-clippy/pulls/$PR_NUMBER\" | \\\n          python -c \"import sys, json; print(json.load(sys.stdin)['body'])\")\n        output=$(awk '/^changelog:\\s*\\S/ && !/changelog: \\[.*\\]: your change/' \u003c\u003c\u003c \"$body\" | sed \"s/changelog:\\s*//g\")\n        if [ -z \"$output\" ]; then\n          echo \"ERROR: pull request message must contain 'changelog: ...' with your changelog. Please add it.\"\n          exit 1\n        else\n          echo \"changelog: $output\"\n          if [[ \"${output}\" == \\[\\`* ]]; then\n            echo \"LINT_CHANGELOG=\\\"${output}\\\"\" >> $GITHUB_ENV\n          else\n            echo \"LINT_CHANGELOG=\\\"meowmeow\\\"\" >> $GITHUB_ENV\n          fi\n        fi\n      env:\n        PYTHONIOENCODING: 'utf-8'\n        PR_NUMBER: '${{ github.event.number }}'\n    - name: New Lint Label\n      uses: actions/github-script@v7\n      with:\n          script: |\n            let res = await github.rest.issues.listLabelsOnIssue({\n              owner: 'blyxyas',\n              repo: 'rust-clippy',\n              issue_number: ${{ github.event.number }}\n            })\n            let names = res.data.map((element) => element.name);\n\n            // We've already visited this PR\n            if (!names.includes('A-new-lint')) {\n            // Check if we're with a new lint (there are 0 mentions of this lint on the codebase\n            if (${{ env.LINT_CHANGELOG }} != \"\") {\n              const lint_name = /\\[`(.*)`\\]/g.exec(${{ env.LINT_CHANGELOG }}).slice(1);\n              let lint_name_upper = lint_name.toString().toUpperCase();\n              let res = await octokit.rest.search.code({\n                q: `${lint_name_upper} repo:rust-lang/rust-clippy`,\n                per_page: 1,\n                });\n                \n                if (res.data.items.length == 0) {\n                  await octokit.rest.issues.createComment({\n                    owner: \"blyxyas\",\n                    repo: \"rust-clippy\",\n                    issue_number: ${{ github.event.number }},\n                    body: \"Seems that you are trying to add a new lint! We are currently in a feature freeze, I'll add it to a milestone.\"\n                  });\n                }\n              }\n            }\n                    \n\n  # We need to have the \"conclusion\" job also on PR CI, to make it possible\n  # to add PRs to a merge queue.\n  conclusion_changelog:\n    needs: [ changelog ]\n    # We need to ensure this job does *not* get skipped if its dependencies fail,\n    # because a skipped job is considered a success by GitHub. So we have to\n    # overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run\n    # when the workflow is canceled manually.\n    #\n    # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!\n    if: ${{ !cancelled() }}\n    runs-on: ubuntu-latest\n    steps:\n      # Manually check the status of all dependencies. `if: failure()` does not work.\n      - name: Conclusion\n        run: |\n          # Print the dependent jobs to see them in the CI log\n          jq -C \u003c\u003c\u003c '${{ toJson(needs) }}'\n          # Check if all jobs that we depend on (in the needs array) were successful.\n          jq --exit-status 'all(.result == \"success\")' \u003c\u003c\u003c '${{ toJson(needs) }}'\n```\n\n\u003c/details>\n\n```js\n            let res = await github.rest.issues.listLabelsOnIssue({\n              owner: 'blyxyas',\n              repo: 'rust-clippy',\n              issue_number: ${{ github.event.number }}\n            })\n            let names = res.data.map((element) => element.name);\n\n            // We've already visited this PR\n            if (!names.includes('A-new-lint')) {\n            // Check if we're with a new lint (there are 0 mentions of this lint on the codebase\n            if (${{ env.LINT_CHANGELOG }} != \"\") {\n              const lint_name = /\\[`(.*)`\\]/g.exec(${{ env.LINT_CHANGELOG }}).slice(1);\n              let lint_name_upper = lint_name.toString().toUpperCase();\n              let res = await octokit.rest.search.code({\n                q: `${lint_name_upper} repo:rust-lang/rust-clippy`,\n                per_page: 1,\n                });\n                \n                if (res.data.items.length == 0) {\n                  await octokit.rest.issues.createComment({\n                    owner: \"blyxyas\",\n                    repo: \"rust-clippy\",\n                    issue_number: ${{ github.event.number }},\n                    body: \"Seems that you are trying to add a new lint! We are currently in a feature freeze, I'll add it to a milestone.\"\n                  });\n                }\n              }\n            }\n```\n\n**Expected behavior**\nIt actually running and posting the comment as desired, it runs correctly on my local PC's Node\n\n**Desktop (please complete the following information):**\n - OS: ubuntu-latest\n - Version: Node 20, action/github-script@v7\n\n**Example**\n\nhttps://github.com/blyxyas/rust-clippy/actions/runs/14022377377/job/39255988671?pr=6","author":{"url":"https://github.com/blyxyas","@type":"Person","name":"blyxyas"},"datePublished":"2025-03-23T20:04:48Z","url":"https://github.com/actions/github-script/issues/567"}

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:346c5850-16f6-637f-3671-a1643cc1f13f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAC12:2D40DE:23F7A98:2DD3745:6B01C39E
html-safe-nonced721eec32835e9a7b84098d4d1762f5aa30b47409190298f093587f6c5af7380
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzEyOjJENDBERToyM0Y3QTk4OjJERDM3NDU6NkIwMUMzOUUiLCJ2aXNpdG9yX2lkIjoiNDEwMjYwODUwMzAyMDA0NTIxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbb5dc5933a051044aa88b88c3492ea6247d4ecebcfca0ae55da47fac57b3015d
hovercard-subject-tagissue:2941452658
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/567/issue_layout
twitter:imagehttps://opengraph.githubassets.com/01e2d550291617c7eac645846d5f9403980d0147d1b3d304c677a3272684ace3/actions/github-script/issues/567
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/01e2d550291617c7eac645846d5f9403980d0147d1b3d304c677a3272684ace3/actions/github-script/issues/567
og:image:altDescribe the bug I've been testing very thoroughly some code that only has a Syntax Error on an actions/github-script@v7 run. To Reproduce The following script fails: Full file name: Clippy changel...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameblyxyas
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/github-script/issues/567#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F567
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%2Factions%2Fgithub-script%2Fissues%2F567
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=actions%2Fgithub-script
Reloadhttps://github.com/actions/github-script/issues/567
Reloadhttps://github.com/actions/github-script/issues/567
Reloadhttps://github.com/actions/github-script/issues/567
actionshttps://github.com/actions
github-scripthttps://github.com/actions/github-script
Codehttps://github.com/actions/github-script
Issues60 (60)https://github.com/actions/github-script/issues
Pull requests36 (36)https://github.com/actions/github-script/pulls
Discussionshttps://github.com/actions/github-script/discussions
Actionshttps://github.com/actions/github-script/actions
Security and qualityhttps://github.com/actions/github-script/security
Insightshttps://github.com/actions/github-script/insights
https://github.com/actions/github-script
New issuehttps://github.com/login?return_to=https://github.com/actions/github-script/issues/567
New issuehttps://github.com/login?return_to=https://github.com/actions/github-script/issues/567
Syntax Error only on Actions?https://github.com/actions/github-script/issues/567#top
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/blyxyas
blyxyashttps://github.com/blyxyas
on Mar 23, 2025https://github.com/actions/github-script/issues/567#issue-2941452658
https://github.com/blyxyas/rust-clippy/actions/runs/14022377377/job/39255988671?pr=6https://github.com/blyxyas/rust-clippy/actions/runs/14022377377/job/39255988671?pr=6
https://github.com/joshmgross
joshmgrosshttps://github.com/joshmgross
on May 13, 2025https://github.com/actions/github-script/issues/567#issuecomment-2876802087
https://github.com/actions/github-script/blob/e7aeb8c663f696059ebb5f9ab1425ed2ef511bdb/README.md#use-env-as-inputhttps://github.com/actions/github-script/blob/e7aeb8c663f696059ebb5f9ab1425ed2ef511bdb/README.md#use-env-as-input
joshmgrosshttps://github.com/joshmgross
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%22
on May 13, 2025https://github.com/actions/github-script/issues/567#event-17637096984
joshmgrosshttps://github.com/joshmgross
on May 14, 2025https://github.com/actions/github-script/issues/567#event-17654989430
robherleyhttps://github.com/robherley
joshmgrosshttps://github.com/joshmgross
on Jul 23, 2025https://github.com/actions/github-script/issues/567#event-18775783889
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/github-script/issues/567
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/github-script/issues/567
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%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.