Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

ci(cla): move CLA action to maintained fork, tighten permissions (#10382)

Myles Scolnickb5d6c2f45bb5
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
index c412d40700..52d6667f1b 100644
--- a/.github/workflows/cla.yml
+++ b/.github/workflows/cla.yml
@@ -3,23 +3,27 @@ on:
issue_comment:
types: [created]
pull_request_target:
- types: [opened, closed, synchronize]
+ types: [opened, closed, reopened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: false # Don't cancel CLA checks
-# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
-permissions:
- actions: write
- contents: write
- pull-requests: write
- statuses: write
- id-token: write # required for Doppler OIDC
+permissions: {}
jobs:
CLAAssistant:
runs-on: ubuntu-latest
+ timeout-minutes: 10
+ permissions:
+ actions: write
+ contents: read # signatures are written to marimo-team/cla-signers with the PAT
+ pull-requests: write
+ statuses: write
+ id-token: write # required for Doppler OIDC
+ # Write scopes on a pull_request_target job are safe only while nothing
+ # here checks out or executes PR-controlled content. Don't add a checkout
+ # or build step.
steps:
- name: 🔐 Fetch Doppler secrets
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
@@ -33,7 +37,8 @@ jobs:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
- uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
+ # maintained fork of the archived contributor-assistant/github-action
+ uses: iainmcgin/cla-github-action@0d27e5a16278d4adb6b0c4b92f08ad27b0a21dc8 # v3.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ steps.secrets.outputs.PERSONAL_ACCESS_TOKEN }}
@@ -48,6 +53,8 @@ jobs:
remote-organization-name: marimo-team
remote-repository-name: cla-signers
lock-pullrequest-aftermerge: false #- if you don't want this bot to automatically lock the pull request after merging (default - true)
+ # fail the check if the PR opener authored none of the commits
+ require-opener-as-author: true
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
#signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'