From b842f9824ac1aaf9bdb1fe951f8311362968fcb6 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Fri, 8 May 2026 14:44:15 -0600 Subject: [PATCH 1/2] Only use doc-building image from ESCOMP/CTSM. Resolves ESCOMP/CTSM#3941. --- .github/workflows/docker-image-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 86de4fc2f2..e5bcd3a66f 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -17,7 +17,7 @@ on: env: REGISTRY: ghcr.io IMAGE_BASENAME: ctsm-docs - REPO: ${{ github.repository }} + REPO: ESCOMP/CTSM # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: From 7e807a159953dc6986523f290a71c93c559c1d25 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Fri, 8 May 2026 14:47:14 -0600 Subject: [PATCH 2/2] Prevent "Build and publish ctsm-docs Docker image" on forks. --- .github/workflows/docker-image-build-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index d22ab701e6..8dfd36caef 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -16,12 +16,14 @@ jobs: # This first job checks that the container can be built, and that we can use it to build the docs without error. build-image-and-test-docs: name: Build image and test docs + if: github.repository == 'ESCOMP/CTSM' uses: ./.github/workflows/docker-image-common.yml secrets: inherit # This second job actually builds and publishes the container. push-and-attest: name: Publish and attest + if: github.repository == 'ESCOMP/CTSM' runs-on: ubuntu-latest # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.)