diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 79da0171..16917186 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,11 +6,11 @@ jobs: pre-commit: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install asdf - uses: asdf-vm/actions/setup@v1 + uses: asdf-vm/actions/setup@v3 - name: Cache tools - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | /home/runner/.asdf @@ -30,7 +30,7 @@ jobs: commitlint: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v5 diff --git a/.github/workflows/publish-devhub.yml b/.github/workflows/publish-devhub.yml index 05d10393..f090c463 100644 --- a/.github/workflows/publish-devhub.yml +++ b/.github/workflows/publish-devhub.yml @@ -4,10 +4,10 @@ on: push: branches: [dev] paths: - - "wiki/**" - - "mkdocs.yml" - - "catalog-info.yaml" - - ".github/workflows/publish-devhub.yml" + - 'wiki/**' + - 'mkdocs.yml' + - 'catalog-info.yaml' + - '.github/workflows/publish-devhub.yml' jobs: publish-techdocs-site: @@ -26,10 +26,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - - uses: actions/setup-python@v4 + - uses: actions/setup-node@v4 + - uses: actions/setup-python@v5 with: python-version: '3.9' @@ -49,20 +49,20 @@ jobs: - name: Publish docs to dev bucket # Always publish the docs to the dev bucket run: | - techdocs-cli publish --publisher-type awsS3 \ - --storage-name $TECHDOCS_S3_BUCKET_NAME \ - --entity $ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME \ - --awsEndpoint $AWS_ENDPOINT \ - --awsS3ForcePathStyle true \ - --awsBucketRootPath $TECHDOCS_S3_DEV_ROOT_PATH + techdocs-cli publish --publisher-type awsS3 \ + --storage-name $TECHDOCS_S3_BUCKET_NAME \ + --entity $ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME \ + --awsEndpoint $AWS_ENDPOINT \ + --awsS3ForcePathStyle true \ + --awsBucketRootPath $TECHDOCS_S3_DEV_ROOT_PATH - name: Publish docs to prod bucket # Currently syncing the prod/dev publish for our docs similar to the wiki updates. # Separate this out to a different ref to deploy prod on a specific branch only (e.g main). if: ${{ github.ref == 'refs/heads/dev' }} run: | - techdocs-cli publish --publisher-type awsS3 \ - --storage-name $TECHDOCS_S3_BUCKET_NAME \ - --entity $ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME \ - --awsEndpoint $AWS_ENDPOINT \ - --awsS3ForcePathStyle true \ + techdocs-cli publish --publisher-type awsS3 \ + --storage-name $TECHDOCS_S3_BUCKET_NAME \ + --entity $ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME \ + --awsEndpoint $AWS_ENDPOINT \ + --awsS3ForcePathStyle true \ diff --git a/.github/workflows/publish-image-backup-storage-gold.yml b/.github/workflows/publish-image-backup-storage-gold.yml index 14c90c72..f273d798 100644 --- a/.github/workflows/publish-image-backup-storage-gold.yml +++ b/.github/workflows/publish-image-backup-storage-gold.yml @@ -5,9 +5,9 @@ on: workflow_dispatch: inputs: postgres_version: - description: "The postgres version" + description: 'The postgres version' required: true - options: ["12", "13"] + options: ['12', '13'] env: GITHUB_REGISTRY: ghcr.io @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout the sso-repos - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout backup storage repository run: git clone https://github.com/BCDevOps/backup-container.git @@ -32,14 +32,14 @@ jobs: run: cp ./docker/backup-container/* ./backup-container/docker - name: Log in to the GitHub Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: backup-container/docker push: true diff --git a/.github/workflows/publish-image-backup-storage-test.yml b/.github/workflows/publish-image-backup-storage-test.yml index 4465d0fc..687fe967 100644 --- a/.github/workflows/publish-image-backup-storage-test.yml +++ b/.github/workflows/publish-image-backup-storage-test.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout the sso-repos - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout backup storage repository run: git clone https://github.com/BCDevOps/backup-container.git @@ -32,30 +32,30 @@ jobs: run: cp ./docker/backup-container/Dockerfile ./backup-container/docker/Dockerfile - name: Log in to the GitHub Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} -# - name: Extract metadata (tags, labels) for Docker -# id: meta -# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 -# with: -# images: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }} + # - name: Extract metadata (tags, labels) for Docker + # id: meta + # uses: docker/metadata-action@v5 + # with: + # images: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }} -# - name: Print tags -# run: echo ${{ steps.meta.outputs.tags }} + # - name: Print tags + # run: echo ${{ steps.meta.outputs.tags }} -# - name: Print labels -# run: echo ${{ steps.meta.outputs.labels }} + # - name: Print labels + # run: echo ${{ steps.meta.outputs.labels }} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: backup-container/docker push: true tags: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:postgres-${{ github.event.inputs.postgres_version}} -# tags: ${{ steps.meta.outputs.tags }} -# labels: postgres-${{ github.event.inputs.postgres_version}} + # tags: ${{ steps.meta.outputs.tags }} + # labels: postgres-${{ github.event.inputs.postgres_version}} labels: sso-keycloak-backup diff --git a/.github/workflows/publish-image-backup-storage.yml b/.github/workflows/publish-image-backup-storage.yml index 48a7e6ad..214a1091 100644 --- a/.github/workflows/publish-image-backup-storage.yml +++ b/.github/workflows/publish-image-backup-storage.yml @@ -7,9 +7,9 @@ on: - main - dev tags: - - "*" + - '*' paths: - - ".github/workflows/publish-image-backup-storage.yml" + - '.github/workflows/publish-image-backup-storage.yml' env: GITHUB_REGISTRY: ghcr.io @@ -27,7 +27,7 @@ jobs: run: git clone https://github.com/BCDevOps/backup-container.git - name: Log in to the GitHub Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} @@ -35,12 +35,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v5 with: images: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: backup-container/docker push: true diff --git a/.github/workflows/publish-image-kc-cron-job.yml b/.github/workflows/publish-image-kc-cron-job.yml index 7d421a51..9c2a180a 100644 --- a/.github/workflows/publish-image-kc-cron-job.yml +++ b/.github/workflows/publish-image-kc-cron-job.yml @@ -6,10 +6,10 @@ on: - main - dev tags: - - "*" + - '*' paths: - - "docker/kc-cron-job/**" - - ".github/workflows/publish-image-kc-cron-job.yml" + - 'docker/kc-cron-job/**' + - '.github/workflows/publish-image-kc-cron-job.yml' env: GITHUB_REGISTRY: ghcr.io @@ -24,10 +24,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the GitHub Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} @@ -35,12 +35,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v5 with: images: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: docker/kc-cron-job push: true diff --git a/.github/workflows/publish-image-keycloak-dev.yml b/.github/workflows/publish-image-keycloak-dev.yml index bf7086e3..0f537b9d 100644 --- a/.github/workflows/publish-image-keycloak-dev.yml +++ b/.github/workflows/publish-image-keycloak-dev.yml @@ -19,27 +19,27 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the GitHub Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Log in to the REDHAT Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REDHAT_REGISTRY }} username: ${{ secrets.REDHAT_USERNAME }} password: ${{ secrets.REDHAT_PASSWORD }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -47,7 +47,7 @@ jobs: ${{ runner.os }}-buildx- - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: docker/keycloak push: true diff --git a/.github/workflows/publish-image-keycloak.yml b/.github/workflows/publish-image-keycloak.yml index 55b2438c..e7ca9955 100644 --- a/.github/workflows/publish-image-keycloak.yml +++ b/.github/workflows/publish-image-keycloak.yml @@ -3,7 +3,7 @@ name: Create and publish Keycloak Docker image on: push: tags: - - "*" + - '*' env: GITHUB_REGISTRY: ghcr.io @@ -19,17 +19,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the GitHub Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Log in to the REDHAT Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REDHAT_REGISTRY }} username: ${{ secrets.REDHAT_USERNAME }} @@ -37,7 +37,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -47,10 +47,10 @@ jobs: type=sha,format=long - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -58,7 +58,7 @@ jobs: ${{ runner.os }}-buildx- - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: docker/keycloak push: true diff --git a/.github/workflows/publish-image-maintenance.yml b/.github/workflows/publish-image-maintenance.yml index e9a5a442..4b8aef4a 100644 --- a/.github/workflows/publish-image-maintenance.yml +++ b/.github/workflows/publish-image-maintenance.yml @@ -14,10 +14,10 @@ jobs: packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the GitHub Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.GITHUB_REGISTRY }} username: ${{ github.actor }} @@ -25,22 +25,22 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v4 - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-mt-cache key: ${{ runner.os }}-buildx-mt-${{ github.sha }} restore-keys: ${{ runner.os }}-buildx-mt- - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: docker/maintenance-page push: true diff --git a/.github/workflows/siteminder-fetch-attributes.yml b/.github/workflows/siteminder-fetch-attributes.yml index 97d8c8c9..bf99fe4f 100644 --- a/.github/workflows/siteminder-fetch-attributes.yml +++ b/.github/workflows/siteminder-fetch-attributes.yml @@ -8,8 +8,8 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out repository - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Generate env file @@ -17,15 +17,15 @@ jobs: cd ${{ github.workspace }}/cy-siteminder-tests echo "${{ secrets.SITEMINDER_TESTS_ENV }}" | base64 --decode > .env - name: Set up docker buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Cache docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-test-cache key: ${{ runner.os }}-buildx-test-${{ github.sha }} restore-keys: ${{ runner.os }}-buildx-test- - name: Build docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: cy-siteminder-tests/ push: false diff --git a/.github/workflows/siteminder-tests.yml b/.github/workflows/siteminder-tests.yml index 5fb42319..602079c5 100644 --- a/.github/workflows/siteminder-tests.yml +++ b/.github/workflows/siteminder-tests.yml @@ -25,8 +25,8 @@ jobs: max-parallel: 1 steps: - name: Check out repository - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Generate env file @@ -34,15 +34,15 @@ jobs: cd ${{ github.workspace }}/cy-siteminder-tests echo "${{ secrets.SITEMINDER_TESTS_ENV }}" | base64 --decode > .env - name: Set up docker buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Cache docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-test-cache key: ${{ runner.os }}-buildx-test-${{ github.sha }} restore-keys: ${{ runner.os }}-buildx-test- - name: Build docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: cy-siteminder-tests/ push: false @@ -66,13 +66,13 @@ jobs: siteminder-tests - name: Upload test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ github.event.inputs.cluster }}-${{ github.event.inputs.environment }}-${{ matrix.name }}-RESULTS path: ${{ github.workspace }}/cy-siteminder-tests/results - name: Rocket.Chat Notification if: failure() - uses: fjogeleit/http-request-action@master + uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.SSO_ALERTS }} method: 'POST' diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 5eae353e..86bbbe5a 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -14,9 +14,9 @@ jobs: working-directory: ./docker/kc-cron-job steps: # Matching docker version - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js 14 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 - name: unit test