Skip to content

chore(deps): bump actions/github-script from 7 to 8#27

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/github-script-8
Open

chore(deps): bump actions/github-script from 7 to 8#27
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/github-script-8

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 2, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/github-script from 7 to 8.

Release notes

Sourced from actions/github-script's releases.

v8.0.0

What's Changed

⚠️ Minimum Compatible Runner Version

v2.327.1
Release Notes

Make sure your runner is updated to this version or newer to use this release.

New Contributors

Full Changelog: actions/github-script@v7.1.0...v8.0.0

v7.1.0

What's Changed

New Contributors

Full Changelog: actions/github-script@v7...v7.1.0

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Mar 2, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: github-actions. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 2, 2026
Comment on lines 146 to 151
- name: Create deployment record
if: success()
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
await github.rest.repos.createDeploymentStatus({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The workflow incorrectly uses a hardcoded fallback deployment_id: 1 for creating a deployment status, because context.payload.deployment is unavailable, causing the step to fail.
Severity: HIGH

Suggested Fix

Instead of relying on context.payload.deployment, first create a deployment using github.rest.repos.createDeployment and store its ID. Then, use that stored ID in the subsequent createDeploymentStatus call to correctly report the deployment's status. This ensures the status update is linked to the actual deployment created by the workflow.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: .github/workflows/ci-cd.yml#L146-L151

Potential issue: In the `ci-cd.yml` workflow, the "Create deployment record" step
attempts to create a deployment status using `github.rest.repos.createDeploymentStatus`.
The `deployment_id` is sourced from `context.payload.deployment?.id`, with a fallback to
`1`. However, this workflow is triggered by `push` and `pull_request` events, not
`deployment` events, so `context.payload.deployment` will always be `undefined`.
Consequently, the script will always attempt to update a deployment with the hardcoded
ID `1`. This will cause the API call to fail with a "Not Found" error, as no
corresponding deployment was created. This failure will incorrectly mark the entire
workflow as failed, even if the actual deployment was successful, causing confusion
about the deployment's true status.

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants