From 5523b33736e45bfa9822962852a03c25a7a195f3 Mon Sep 17 00:00:00 2001 From: pngwn Date: Tue, 6 Aug 2024 11:36:20 +0100 Subject: [PATCH] Ci security tweaks take seventy three (#9026) * asd * asd * asd * asd * adsa * asd * asd * asd * fix --- .github/workflows/generate-changeset.yml | 4 ++-- .github/workflows/previews-deploy.yml | 2 +- .github/workflows/update-checks.yml | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-changeset.yml b/.github/workflows/generate-changeset.yml index 0cc6d45aa3..c374eb6b2c 100644 --- a/.github/workflows/generate-changeset.yml +++ b/.github/workflows/generate-changeset.yml @@ -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 }} diff --git a/.github/workflows/previews-deploy.yml b/.github/workflows/previews-deploy.yml index c7756315ec..fe414beb17 100644 --- a/.github/workflows/previews-deploy.yml +++ b/.github/workflows/previews-deploy.yml @@ -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 diff --git a/.github/workflows/update-checks.yml b/.github/workflows/update-checks.yml index 8adf552b44..48e1127311 100644 --- a/.github/workflows/update-checks.yml +++ b/.github/workflows/update-checks.yml @@ -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: