Skip to content

Remove deploy check for dependabot - #2080

Merged
tomodwyer merged 1 commit into
mainfrom
tomodwyer/dependabot-deploy
Oct 14, 2026
Merged

tomodwyer merged 1 commit into
mainfrom
tomodwyer/dependabot-deploy

Conversation

@tomodwyer

@tomodwyer tomodwyer commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #930.

As it is no longer needed, dependabot should be able to deploy a preview URL

As it is no longer needed, dependabot should be able to deploy a
preview URL
@tomodwyer tomodwyer self-assigned this Oct 14, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying opensafely-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1959da7
Status: ✅  Deploy successful!
Preview URL: https://3ffda410.opensafely-docs.pages.dev
Branch Preview URL: https://tomodwyer-dependabot-deploy.opensafely-docs.pages.dev

View logs

run: echo ${{ github.sha }} > site/version.html

- name: Publish
if: ${{ github.actor != 'dependabot[bot]' }}

@StevenMaude StevenMaude Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Because this took me a few minutes to unravel, I'll document my understanding which is:

  1. Dependabot opens a PR.
  2. The PR triggers this workflow.
  3. A Dependabot-triggered workflow does not get secret access (unless those are stored as Dependabot secrets.
  4. wrangler-action will fail because of not having the secrets.

For example, in a recent Dependabot PR, this workflow did run (due to the push trigger), and this specific "Publish" step was skipped. So I believe the "Publish" step would have failed if wasn't skipped.

None of this behaviour has changed.

So, we get to my question. The difference between team-manual where this was discussed, and this process works without the exemption here, is that: in team-manual, we've added these secrets as Dependabot secrets.

Are we intending to do that here? Otherwise, this workflow will fail for Dependabot.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup that's all correct, and I am adding the secrets now to this repo (once I remembered where they were added)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for confirming!

@tomodwyer
tomodwyer merged commit 59096e8 into main Oct 14, 2026
4 checks passed
@tomodwyer
tomodwyer deleted the tomodwyer/dependabot-deploy branch October 14, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable site preview for Dependabot builds

2 participants