Skip to content

πŸ™Œ OpenHands: AI-Driven Development

chore(deps): bump actions/github-script from 7 to 9 (#13958)

dependabot[bot]a5a7a86600dd
diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml
index 27facde4be..05de82c1fa 100644
--- a/.github/workflows/openhands-resolver.yml
+++ b/.github/workflows/openhands-resolver.yml
@@ -192,7 +192,7 @@ jobs:
echo "TARGET_BRANCH=${{ inputs.target_branch || 'main' }}" >> $GITHUB_ENV
- name: Comment on issue with start message
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.PAT_TOKEN || github.token }}
script: |
@@ -206,7 +206,7 @@ jobs:
- name: Install OpenHands
id: install_openhands
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
COMMENT_BODY: ${{ github.event.comment.body || '' }}
REVIEW_BODY: ${{ github.event.review.body || '' }}
@@ -305,7 +305,7 @@ jobs:
# Step leaves comment for when agent is invoked on PR
- name: Analyze Push Logs (Updated PR or No Changes) # Skip comment if PR update was successful OR leave comment if the agent made no code changes
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
if: always()
env:
AGENT_RESPONDED: ${{ env.AGENT_RESPONDED || 'false' }}
@@ -341,7 +341,7 @@ jobs:
# Step leaves comment for when agent is invoked on issue
- name: Comment on issue # Comment link to either PR or branch created by agent
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
if: always() # Comment on issue even if the previous steps fail
env:
AGENT_RESPONDED: ${{ env.AGENT_RESPONDED || 'false' }}
@@ -416,7 +416,7 @@ jobs:
# Leave error comment when both PR/Issue comment handling fail
- name: Fallback Error Comment
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
if: ${{ env.AGENT_RESPONDED == 'false' }} # Only run if no conditions were met in previous steps
env:
ISSUE_NUMBER: ${{ env.ISSUE_NUMBER }}
diff --git a/.github/workflows/pr-artifacts.yml b/.github/workflows/pr-artifacts.yml
index f0c6ee0f80..0134be3757 100644
--- a/.github/workflows/pr-artifacts.yml
+++ b/.github/workflows/pr-artifacts.yml
@@ -59,7 +59,7 @@ jobs:
- name: Update PR comment after cleanup
if: steps.check-fork.outputs.is_fork == 'false' && steps.remove.outputs.removed == 'true'
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const marker = '<!-- pr-artifacts-notice -->';
@@ -107,7 +107,7 @@ jobs:
- name: Post or update PR comment
if: steps.check.outputs.exists == 'true'
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const marker = '<!-- pr-artifacts-notice -->';
diff --git a/.github/workflows/welcome-good-first-issue.yml b/.github/workflows/welcome-good-first-issue.yml
index 4bedc4a48b..a23edf8c08 100644
--- a/.github/workflows/welcome-good-first-issue.yml
+++ b/.github/workflows/welcome-good-first-issue.yml
@@ -14,7 +14,7 @@ jobs:
steps:
- name: Check if welcome comment already exists
id: check_comment
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
result-encoding: string
script: |
@@ -33,7 +33,7 @@ jobs:
- name: Leave welcome comment
if: steps.check_comment.outputs.result == 'false'
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const repoUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}`;