update deprecated github actions

fixes #6875
This commit is contained in:
David Brailovsky
2026-07-21 12:22:27 +00:00
parent 9e7582aa03
commit 74f8784966
10 changed files with 30 additions and 30 deletions
+3 -3
View File
@@ -13,13 +13,13 @@ jobs:
issues: write issues: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
ref: ${{ github.event.repository.default_branch }} ref: ${{ github.event.repository.default_branch }}
- name: Update contributor approval - name: Update contributor approval
id: update id: update
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const fs = require('fs'); const fs = require('fs');
@@ -146,7 +146,7 @@ jobs:
- name: Comment on issue - name: Comment on issue
if: steps.update.outputs.status == 'added' || steps.update.outputs.status == 'updated' || steps.update.outputs.status == 'already' if: steps.update.outputs.status == 'added' || steps.update.outputs.status == 'updated' || steps.update.outputs.status == 'already'
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const issueAuthor = context.payload.issue.user.login; const issueAuthor = context.payload.issue.user.login;
+4 -4
View File
@@ -33,7 +33,7 @@ jobs:
SOURCE_REF: ${{ github.event.inputs.source_ref || github.event.inputs.tag || github.ref_name }} SOURCE_REF: ${{ github.event.inputs.source_ref || github.event.inputs.tag || github.ref_name }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
ref: ${{ env.SOURCE_REF }} ref: ${{ env.SOURCE_REF }}
persist-credentials: false persist-credentials: false
@@ -44,7 +44,7 @@ jobs:
bun-version: 1.3.14 bun-version: 1.3.14
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: '22' node-version: '22'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
@@ -201,13 +201,13 @@ jobs:
SOURCE_REF: ${{ github.event.inputs.source_ref || github.event.inputs.tag || github.ref_name }} SOURCE_REF: ${{ github.event.inputs.source_ref || github.event.inputs.tag || github.ref_name }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
ref: ${{ env.SOURCE_REF }} ref: ${{ env.SOURCE_REF }}
persist-credentials: false persist-credentials: false
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: '22' node-version: '22'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
+2 -2
View File
@@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: 22 node-version: 22
cache: npm cache: npm
+11 -11
View File
@@ -61,7 +61,7 @@ jobs:
steps: steps:
- name: Verify sender permission - name: Verify sender permission
id: verify id: verify
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
ORG_READ_TOKEN: ${{ secrets.EARENDIL_ORG_READ_TOKEN }} ORG_READ_TOKEN: ${{ secrets.EARENDIL_ORG_READ_TOKEN }}
with: with:
@@ -254,19 +254,19 @@ jobs:
steps: steps:
- name: Create high-entropy working directory name - name: Create high-entropy working directory name
id: workdir id: workdir
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const crypto = require('crypto'); const crypto = require('crypto');
core.setOutput('name', `pi-ci-${crypto.randomBytes(16).toString('hex')}`); core.setOutput('name', `pi-ci-${crypto.randomBytes(16).toString('hex')}`);
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
path: ${{ steps.workdir.outputs.name }} path: ${{ steps.workdir.outputs.name }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: 22 node-version: 22
cache: npm cache: npm
@@ -319,7 +319,7 @@ jobs:
- name: Write auth.json - name: Write auth.json
id: write_auth id: write_auth
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
PI_AUTH_JSON: ${{ secrets.PI_AUTH_JSON }} PI_AUTH_JSON: ${{ secrets.PI_AUTH_JSON }}
with: with:
@@ -341,7 +341,7 @@ jobs:
} }
- name: Run pi /is - name: Run pi /is
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
PI_CODING_AGENT_DIR: ${{ runner.temp }}/pi-agent PI_CODING_AGENT_DIR: ${{ runner.temp }}/pi-agent
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
@@ -404,7 +404,7 @@ jobs:
- name: Persist refreshed auth.json - name: Persist refreshed auth.json
if: always() && steps.write_auth.outcome == 'success' if: always() && steps.write_auth.outcome == 'success'
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
GH_TOKEN: ${{ secrets.PI_AUTH_UPDATE_TOKEN }} GH_TOKEN: ${{ secrets.PI_AUTH_UPDATE_TOKEN }}
PI_CODING_AGENT_DIR: ${{ runner.temp }}/pi-agent PI_CODING_AGENT_DIR: ${{ runner.temp }}/pi-agent
@@ -457,7 +457,7 @@ jobs:
- name: Export session files - name: Export session files
id: export_session_files id: export_session_files
if: always() if: always()
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
PI_CODING_AGENT_DIR: ${{ runner.temp }}/pi-agent PI_CODING_AGENT_DIR: ${{ runner.temp }}/pi-agent
WORKDIR: ${{ steps.workdir.outputs.name }} WORKDIR: ${{ steps.workdir.outputs.name }}
@@ -509,7 +509,7 @@ jobs:
- name: Upload session gist - name: Upload session gist
id: gist id: gist
if: always() && steps.export_session_files.outcome == 'success' if: always() && steps.export_session_files.outcome == 'success'
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
PI_GIST_TOKEN: ${{ secrets.PI_GIST_TOKEN }} PI_GIST_TOKEN: ${{ secrets.PI_GIST_TOKEN }}
with: with:
@@ -540,7 +540,7 @@ jobs:
- name: Comment with session import instructions - name: Comment with session import instructions
if: always() && steps.gist.outcome == 'success' if: always() && steps.gist.outcome == 'success'
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env: env:
GIST_URL: ${{ steps.gist.outputs.url }} GIST_URL: ${{ steps.gist.outputs.url }}
GIST_ID: ${{ steps.gist.outputs.id }} GIST_ID: ${{ steps.gist.outputs.id }}
@@ -619,7 +619,7 @@ jobs:
- name: Remove trigger label - name: Remove trigger label
if: always() if: always()
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
try { try {
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
issues: write issues: write
steps: steps:
- name: Check issue author - name: Check issue author
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const APPROVED_FILE = '.github/APPROVED_CONTRIBUTORS'; const APPROVED_FILE = '.github/APPROVED_CONTRIBUTORS';
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
issues: write issues: write
steps: steps:
- name: Update triage labels - name: Update triage labels
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const UNTRIAGED_LABEL = 'untriaged'; const UNTRIAGED_LABEL = 'untriaged';
+2 -2
View File
@@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: 22 node-version: 22
cache: npm cache: npm
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
pull-requests: write pull-requests: write
steps: steps:
- name: Check if contributor is approved - name: Check if contributor is approved
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const APPROVED_FILE = '.github/APPROVED_CONTRIBUTORS'; const APPROVED_FILE = '.github/APPROVED_CONTRIBUTORS';
+4 -4
View File
@@ -42,13 +42,13 @@ jobs:
SOURCE_REF: ${{ github.event.workflow_run.head_sha || inputs.source_ref || github.sha }} SOURCE_REF: ${{ github.event.workflow_run.head_sha || inputs.source_ref || github.sha }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
ref: ${{ env.SOURCE_REF }} ref: ${{ env.SOURCE_REF }}
persist-credentials: false persist-credentials: false
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: '22' node-version: '22'
cache: npm cache: npm
@@ -87,13 +87,13 @@ jobs:
R2_ENDPOINT: https://67c0d357268b0fca6e0b465bb9d01b84.r2.cloudflarestorage.com R2_ENDPOINT: https://67c0d357268b0fca6e0b465bb9d01b84.r2.cloudflarestorage.com
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
ref: ${{ env.SOURCE_REF }} ref: ${{ env.SOURCE_REF }}
persist-credentials: false persist-credentials: false
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: with:
node-version: '22' node-version: '22'
@@ -11,7 +11,7 @@ jobs:
issues: write issues: write
steps: steps:
- name: Remove inprogress label - name: Remove inprogress label
uses: actions/github-script@v7 uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with: with:
script: | script: |
const labelName = 'inprogress'; const labelName = 'inprogress';