From 57a6a4418a8b8d6f4d6ef036e3c736a9e63720b8 Mon Sep 17 00:00:00 2001 From: jnywong Date: Mon, 27 May 2024 09:09:16 +0000 Subject: [PATCH] Remove build and push test image workflow See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ --- .github/workflows/test.yml | 46 -------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 330e33f..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Build and push test container image - -on: - pull_request_target: - types: [opened] - paths: - - environment.yml - -permissions: - pull-requests: - write - -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - - # For biggish images, github actions runs out of disk space. - # So we cleanup some unwanted things in the disk image, and reclaim that space for our docker use - # https://github.com/actions/virtual-environments/issues/2606#issuecomment-772683150 - # and https://github.com/easimon/maximize-build-space/blob/b4d02c14493a9653fe7af06cc89ca5298071c66e/action.yml#L104 - # This gives us a total of about 52G of free space, which should be enough for now - - name: cleanup disk space - run: | - sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc - df -h - - - name: Checkout files in repo - uses: actions/checkout@main - - - name: Build and push the image to quay.io - uses: jupyterhub/repo2docker-action@master - with: - # Make sure username & password/token pair matches your registry credentials - DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }} - DOCKER_REGISTRY: "quay.io" - # Disable pushing a 'latest' tag, as this often just causes confusion - LATEST_TAG_OFF: true - - # Uncomment and modify the following line with your image name, otherwise no push will happen - IMAGE_NAME: "2i2c/sciencecore-climaterisk-image-test" - - # Lets us monitor disks getting full as images get bigger over time - - name: Show how much disk space is left - run: df -h \ No newline at end of file