-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ci: add legacy-g10 TAP group, split legacy-g4 #6057
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
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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: CI-legacy-g10 | ||
| run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} ${{ github.workflow }} ${{ github.event.workflow_run && github.event.workflow_run.head_sha || github.sha }}' | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| workflow_run: | ||
| workflows: [ CI-trigger ] | ||
| types: [ completed ] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| run: | ||
| if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} | ||
| # `write-all` is required for the callee's `use_oidc: true` Codecov | ||
| # upload step to mint a GitHub OIDC token. Reusable-workflow | ||
| # permissions are the intersection of caller + callee, so the | ||
| # caller has to grant id-token:write (and everything else included | ||
| # in write-all) for the callee's declaration to take effect. The | ||
| # callee at ci-<group>.yml@GH-Actions also declares write-all. | ||
| permissions: write-all | ||
|
Check warning on line 23 in .github/workflows/CI-legacy-g10.yml
|
||
| uses: sysown/proxysql/.github/workflows/ci-legacy-g10.yml@GH-Actions | ||
|
Check failure on line 24 in .github/workflows/CI-legacy-g10.yml
|
||
| secrets: inherit | ||
|
Check warning on line 25 in .github/workflows/CI-legacy-g10.yml
|
||
| with: | ||
| trigger: ${{ toJson(github) }} | ||
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.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 50372
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 45223
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 45062
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 50372
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 563
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 3453
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 16758
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 2439
🏁 Script executed:
Repository: sysown/proxysql
Length of output: 2439
Gate the privileged
workflow_runpath before merge.CI-triggerblocks fork pull requests, but it permits same-repository pull requests. This caller checks onlyworkflow_run.conclusion. TheGH-Actionscallee then checks outworkflow_run.head_shaand runs tests withwrite-alland inherited secrets. Add a trusted repository/ref gate, pass only required secrets, and reduce permissions to the minimum required by the callee.🧰 Tools
🪛 zizmor (1.29.0)
[error] 4-8: use of fundamentally insecure workflow trigger (dangerous-triggers): workflow_run is almost always used insecurely
(dangerous-triggers)
🤖 Prompt for AI Agents
Source: Linters/SAST tools