-
Notifications
You must be signed in to change notification settings - Fork 0
ci: swap Docker trigger-workflow-and-wait for JS workflow_dispatch #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ed47321
0d8b599
c741cf0
31f8391
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,8 +55,22 @@ on: | |||||||||||||||||||||||||||||||||||||||
| required: true | ||||||||||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||||||||||
| default: 'precoded' | ||||||||||||||||||||||||||||||||||||||||
| distinct_id: | ||||||||||||||||||||||||||||||||||||||||
| description: 'Distinct ID injected by return-dispatch to identify this run' | ||||||||||||||||||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||||||||||
| default: '' | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||
| return-dispatch-id: | ||||||||||||||||||||||||||||||||||||||||
| name: Return Dispatch ID | ||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||
| - name: Return Dispatch ID ${{ inputs.distinct_id }} | ||||||||||||||||||||||||||||||||||||||||
| run: echo "${DISTINCT_ID}" | ||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||
| DISTINCT_ID: ${{ inputs.distinct_id }} | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
64
to
+73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win Add explicit least-privilege permissions to the new job. zizmor flags this job for using default (overly broad) permissions since no 🔒 Proposed fix return-dispatch-id:
name: Return Dispatch ID
runs-on: ubuntu-latest
+ permissions: {}
steps:
- name: Return Dispatch ID ${{ inputs.distinct_id }}📝 Committable suggestion
Suggested change
🧰 Tools🪛 zizmor (1.26.1)[warning] 65-72: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||||||||||||||||||||||||||||
| get-runner-labels: | ||||||||||||||||||||||||||||||||||||||||
| name: Get Runner Labels | ||||||||||||||||||||||||||||||||||||||||
| uses: ./.github/workflows/get-runner-labels.yml | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Temporary branch pin on
refbreaks the auto-propagation bridge.ref: ci/dockerless-workflow-dispatchhardcodes the dispatch target to a dev branch instead ofmain. Per the SHA/ref policy this field is explicitly meant to remainmain— pointing it elsewhere breaks the mechanism that lets the third bucket auto-propagate, and diverges from the siblingecosystem_ci_per_commit/action.yaml, which correctly keepsref: 'main'(line 53). This is already called out as WIP in the commit history, but as staged it would ship a broken/diverged config.🔧 Proposed fix
with: token: ${{ inputs.github-token }} - ref: ci/dockerless-workflow-dispatch + ref: main owner: rstackjsAs per coding guidelines, "Do not parameterize
ref: mainintrigger-workflow-and-wait— it is the bridge that makes the third bucket auto-propagate" and "When fixing a bug or adding a feature to one stack's workflows or shared actions, check whether the same issue or gap exists in the other stacks and apply the fix uniformly."📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines