From e8ef6ea5be281371b1ff3c53f61bf2ae09eae999 Mon Sep 17 00:00:00 2001 From: Seth Grover Date: Thu, 7 Mar 2024 07:55:43 -0700 Subject: [PATCH] remove 403jump --- .github/workflows/403jump-build-push-ghcr.yml | 98 ------------------- 403jump/Dockerfile | 22 ----- 2 files changed, 120 deletions(-) delete mode 100644 .github/workflows/403jump-build-push-ghcr.yml delete mode 100644 403jump/Dockerfile diff --git a/.github/workflows/403jump-build-push-ghcr.yml b/.github/workflows/403jump-build-push-ghcr.yml deleted file mode 100644 index e4e82da..0000000 --- a/.github/workflows/403jump-build-push-ghcr.yml +++ /dev/null @@ -1,98 +0,0 @@ ---- -name: 403jump-build-push-ghcr - -on: - push: - branches: - - 'master' - paths: - - '403jump/**' - - '.github/workflows/403jump-build-push-ghcr.yml' - pull_request: - paths: - - '403jump/**' - - '.github/workflows/403jump-build-push-ghcr.yml' - workflow_dispatch: - repository_dispatch: - schedule: - - cron: '0 12 15 * *' - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/403jump - IMAGE_TAG: latest - IMAGE_ARCH: amd64,arm64 - REPO_CONTEXT: ./403jump - REPO_CONTAINERFILE: ./403jump/Dockerfile - -jobs: - buildah: - runs-on: ubuntu-latest - permissions: - actions: write - packages: write - contents: read - security-events: write - steps: - - - name: Cancel previous run in progress - id: cancel-previous-runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - ignore_sha: true - all_but_latest: true - access_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Checkout - id: repo-checkout - uses: actions/checkout@v3 - - - name: Set up QEMU - id: setup-qemu - uses: docker/setup-qemu-action@v2 - - - name: Log in to registry - id: registry-login - uses: redhat-actions/podman-login@v1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: ${{ env.IMAGE_NAME }} - tags: ${{ env.IMAGE_TAG }} - context: ${{ env.REPO_CONTEXT }} - containerfiles: ${{ env.REPO_CONTAINERFILE }} - archs: ${{ env.IMAGE_ARCH }} - - - name: Run Trivy vulnerability scanner - id: trivy-scan - uses: aquasecurity/trivy-action@master - with: - scan-type: 'image' - image-ref: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} - format: 'sarif' - output: 'trivy-results.sarif' - severity: 'HIGH,CRITICAL' - vuln-type: 'os,library' - hide-progress: true - ignore-unfixed: true - exit-code: '0' - - - name: Upload Trivy scan results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v2 - if: always() - with: - sarif_file: 'trivy-results.sarif' - - - name: Push - id: push-to-ghcr - uses: redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ env.REGISTRY }} diff --git a/403jump/Dockerfile b/403jump/Dockerfile deleted file mode 100644 index 5b2055e..0000000 --- a/403jump/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM golang:alpine AS go-build - -RUN apk --no-cache add --update git ca-certificates && \ - update-ca-certificates && \ - git clone https://github.com/trap-bytes/403jump /403jump && \ - cd /403jump && \ - go build - -LABEL maintainer="mero.mero.guero@gmail.com" -LABEL org.opencontainers.image.authors='mero.mero.guero@gmail.com' -LABEL org.opencontainers.image.url='https://github.com/mmguero/docker/tree/master/403jump' -LABEL org.opencontainers.image.source='https://github.com/mmguero/docker' -LABEL org.opencontainers.image.title='oci.guero.top/403jump' -LABEL org.opencontainers.image.description='Dockerized 403jump (https://github.com/trap-bytes/403jump)' - - -FROM scratch - -COPY --from=go-build --chmod=755 /403jump/403jump /403jump -COPY --from=go-build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ - -ENTRYPOINT ["/403jump"]