mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-31 20:47:00 +00:00
* build(deps): bump the actions group across 1 directory with 4 updates Bumps the actions group with 4 updates in the / directory: [actions/create-github-app-token](https://github.com/actions/create-github-app-token), [ruby/setup-ruby](https://github.com/ruby/setup-ruby), [actions/setup-java](https://github.com/actions/setup-java) and [openai/codex-action](https://github.com/openai/codex-action). Updates `actions/create-github-app-token` from 3.2.0 to 3.3.0 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md) - [Commits](bcd2ba4921...64ab729a62) Updates `ruby/setup-ruby` from 1.327.0 to 1.329.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](14594264cd...651ff0d62c) Updates `actions/setup-java` from 6.0.1 to 6.1.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](de7274f081...b843ebf9b9) Updates `openai/codex-action` from 1.12 to 1.13 - [Changelog](https://github.com/openai/codex-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/openai/codex-action/compare/v1.12...bdf19a4a223ec2549a3e2274a0cf61556bc07675) --- updated-dependencies: - dependency-name: actions/create-github-app-token dependency-version: 3.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: ruby/setup-ruby dependency-version: 1.329.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/setup-java dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: openai/codex-action dependency-version: '1.13' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * test(ci): align workflow token action pin assertions * chore(ci): separate protected workflow action updates Keep the ordinary app-token and Ruby upgrades in this PR. Preserve the Codex and security-owned workflow changes in openclaw/openclaw#174429 with their existing proof and review holds. * test(ci): repair inherited workflow and UI ownership fixtures --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
74 lines
3 KiB
YAML
74 lines
3 KiB
YAML
name: Auto response
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, edited, labeled]
|
|
issue_comment:
|
|
types: [created]
|
|
pull_request_target: # zizmor: ignore[dangerous-triggers] maintainer-owned label automation; trusted base checkout only, no untrusted PR code execution
|
|
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
auto-response:
|
|
if: >-
|
|
${{ (
|
|
!contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association || github.event.pull_request.author_association) &&
|
|
(github.event_name != 'issue_comment' || github.event.comment.user.type != 'Bot') &&
|
|
(github.event.action != 'edited' || !github.event.changes ||
|
|
github.event.changes.title || github.event.changes.body || github.event.changes.base) &&
|
|
(
|
|
github.event_name != 'pull_request_target' ||
|
|
(github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
|
|
(github.actor != 'clawsweeper[bot]' && github.actor != 'openclaw-clawsweeper[bot]')
|
|
)
|
|
) }}
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request_target' && github.event.action == 'synchronize' }}
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
ref: ${{ github.sha }}
|
|
persist-credentials: false
|
|
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3
|
|
id: app-token
|
|
continue-on-error: true
|
|
with:
|
|
app-id: "2729701"
|
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
permission-issues: write
|
|
permission-members: read
|
|
permission-metadata: read
|
|
permission-pull-requests: write
|
|
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3
|
|
id: app-token-fallback
|
|
if: steps.app-token.outcome == 'failure'
|
|
with:
|
|
app-id: "2971289"
|
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
|
|
permission-issues: write
|
|
permission-members: read
|
|
permission-metadata: read
|
|
permission-pull-requests: write
|
|
- name: Run Barnacle auto-response
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
|
|
with:
|
|
github-token: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token }}
|
|
script: |
|
|
const { pathToFileURL } = require("node:url");
|
|
const moduleUrl = pathToFileURL(
|
|
`${process.env.GITHUB_WORKSPACE}/scripts/github/barnacle-auto-response.mjs`,
|
|
);
|
|
const { runBarnacleAutoResponse } = await import(moduleUrl.href);
|
|
|
|
await runBarnacleAutoResponse({ github, context, core });
|