Skip to content

Commit 23d7462

Browse files
pngwnfreddyaboulton
authored andcommitted
Ci security tweaks (#9014)
* asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * :[ * asd
1 parent de83299 commit 23d7462

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/previews-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
export AWS_ACCESS_KEY_ID=${{ secrets.PYPI_PREVIEWS_AWS_S3_ACCESS_KEY }}
7777
export AWS_SECRET_ACCESS_KEY=${{ secrets.PYPI_PREVIEWS_AWS_S3_SECRET_ACCESS_KEY }}
7878
export AWS_DEFAULT_REGION=us-east-1
79-
aws s3 cp ${{ steps.set_wheel_name.outputs.wheel_name}}-py3-none-any.whl s3://gradio-pypi-previews/${{ needs.changes.outputs.sha }}/
79+
aws s3 cp ${{ steps.set_wheel_name.outputs.wheel_name}} s3://gradio-pypi-previews/${{ needs.changes.outputs.sha }}/
8080
8181
- name: Set tarball name
8282
id: set_tarball_name

.github/workflows/storybook-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323
outputs:
2424
should_run: ${{ steps.changes.outputs.should_run }}
25+
sha: ${{ steps.changes.outputs.sha }}
26+
source_branch: ${{ steps.changes.outputs.source_branch }}
27+
source_repo: ${{ steps.changes.outputs.source_repo }}
2528
steps:
2629
- uses: actions/checkout@v4
2730
- uses: "gradio-app/gradio/.github/actions/changes@main"
@@ -36,6 +39,9 @@ jobs:
3639
if: needs.changes.outputs.should_run == 'true'
3740
steps:
3841
- uses: actions/checkout@v4
42+
with:
43+
ref: ${{ needs.changes.outputs.source_branch }}
44+
repository: ${{ needs.changes.outputs.source_repo }}
3945
- name: install dependencies
4046
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
4147
with:

0 commit comments

Comments
 (0)