Ci security tweaks take seventy three (#9026)

* asd

* asd

* asd

* asd

* adsa

* asd

* asd

* asd

* fix
This commit is contained in:
pngwn 2024-08-06 11:36:20 +01:00 committed by GitHub
parent d5f0f30eb4
commit 5523b33736
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View File

@ -41,9 +41,9 @@ jobs:
environment: comment_pr
permissions: write-all
name: static checks
name: version
needs: get-pr
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: needs.get-pr.outputs.found_pr == 'true'
outputs:
skipped: ${{ steps.version.outputs.skipped }}

View File

@ -92,7 +92,7 @@ jobs:
export AWS_SECRET_ACCESS_KEY=${{ secrets.NPM_PREVIEWS_AWS_S3_SECRET_ACCESS_KEY }}
export AWS_DEFAULT_REGION=us-east-1
aws s3 cp ${{ steps.set_tarball_name.outputs.tarball_path }} s3://gradio-npm-previews/${{ needs.changes.outputs.sha }}/
echo "js_tarball_url=https://gradio-npm-previews.s3.amazonaws.com/${{ steps.set_tarball_name.outputs.tarball_name }}" >> $GITHUB_OUTPUT
echo "js_tarball_url=https://gradio-npm-previews.s3.amazonaws.com/${{ needs.changes.outputs.sha }}/${{ steps.set_tarball_name.outputs.tarball_name }}" >> $GITHUB_OUTPUT
- name: Install Hub Client Library
run: pip install huggingface-hub==0.23.2

View File

@ -36,6 +36,7 @@ jobs:
with:
path: output.json
update-status:
environment: commit_status
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.should_run == 'false'
@ -43,6 +44,8 @@ jobs:
- name: set check name
id: set_check_name
run: echo "${{ toJson(github) }}"
- name: echo outputs
run: echo "${{ toJson(needs.changes.outputs) }}"
# - name: update status
# uses: gradio-app/github/actions/set-commit-status@main
# with: