diff --git a/.github/workflows/pathogen-repo-ci.yaml b/.github/workflows/pathogen-repo-ci.yaml index c588d81..81795c6 100644 --- a/.github/workflows/pathogen-repo-ci.yaml +++ b/.github/workflows/pathogen-repo-ci.yaml @@ -44,10 +44,47 @@ on: default: "" required: false +permissions: + contents: read + packages: read + jobs: build: runs-on: ubuntu-latest steps: + # Log in, if possible, to docker.io (Docker Hub), since authenticated + # requests get higher rate limits (e.g. for image pulls). Our org-level + # secret DOCKER_TOKEN_PUBLIC_READ_ONLY is available to all our public + # repos on GitHub but only available here to this reusable workflow when + # called with "secrets: inherit". On Docker Hub, the token is granted + # "public read-only" access. + - id: DOCKER_TOKEN_PUBLIC_READ_ONLY + name: Check if DOCKER_TOKEN_PUBLIC_READ_ONLY secret is available + env: + DOCKER_TOKEN_PUBLIC_READ_ONLY: ${{ secrets.DOCKER_TOKEN_PUBLIC_READ_ONLY }} + run: | + tee -a "$GITHUB_OUTPUT" <<