mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-31 12:20:26 +08:00
Ci security tweaks (#9010)
* asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd
This commit is contained in:
parent
4d8a473632
commit
98475a2ebc
4
.github/workflows/previews-deploy.yml
vendored
4
.github/workflows/previews-deploy.yml
vendored
@ -7,8 +7,6 @@ on:
|
||||
types:
|
||||
- completed
|
||||
|
||||
permissions:
|
||||
statuses: write
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
@ -57,6 +55,8 @@ jobs:
|
||||
needs: changes
|
||||
if: ${{ needs.changes.outputs.should_run == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
|
5
.github/workflows/website-deploy.yml
vendored
5
.github/workflows/website-deploy.yml
vendored
@ -6,9 +6,6 @@ on:
|
||||
types:
|
||||
- completed
|
||||
|
||||
permissions:
|
||||
statuses: write
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
@ -57,6 +54,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: needs.changes.outputs.should_run == 'true'
|
||||
permissions:
|
||||
actions: read
|
||||
outputs:
|
||||
vercel_url: ${{ steps.output_url.outputs.vercel_url }}
|
||||
env:
|
||||
|
Loading…
x
Reference in New Issue
Block a user