diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..274c097 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + github-actions: + patterns: + - "*" + cooldown: + default-days: 7 diff --git a/.github/workflows/base_builder.yaml b/.github/workflows/base_builder.yaml index e31385a..aea5cb9 100644 --- a/.github/workflows/base_builder.yaml +++ b/.github/workflows/base_builder.yaml @@ -8,16 +8,27 @@ on: branches: ["main"] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: {} + jobs: docker: + name: Build and push base image runs-on: ubuntu-latest + permissions: + contents: read # actions/checkout steps: - name: Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Docker meta id: meta - uses: docker/metadata-action@v5.7.0 + uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0 with: # list of Docker images to use as base name for tags images: | @@ -31,21 +42,21 @@ jobs: type=sha - name: Set up QEMU - uses: docker/setup-qemu-action@v3.6.0 + uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.10.0 + uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 - name: Login to Docker Hub if: github.event_name != 'pull_request' - uses: docker/login-action@v3.4.0 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to Harbor Container Registry if: github.event_name != 'pull_request' - uses: docker/login-action@v3.4.0 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: registry: hub.opensciencegrid.org username: ${{ secrets.HARBOR_USERNAME }} @@ -53,7 +64,7 @@ jobs: - name: Test build if: github.event_name == 'pull_request' - uses: docker/build-push-action@v6.15.0 + uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 with: context: . file: docker/Dockerfile @@ -68,7 +79,7 @@ jobs: - name: Build and push if: github.event_name != 'pull_request' - uses: docker/build-push-action@v6.15.0 + uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 with: context: . file: docker/Dockerfile @@ -78,7 +89,7 @@ jobs: - name: Repository Dispatch if: github.event_name != 'pull_request' - uses: peter-evans/repository-dispatch@v3.0.0 + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.GITOPS_REBUILD_TRIGGER }} repository: usatlas/analysisbase-dask-uc