<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kaveh Alemi</title>
    <description>The latest articles on DEV Community by Kaveh Alemi (@kalemi).</description>
    <link>https://dev.to/kalemi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4080851%2F614505a9-f79d-42e6-8e8b-d0c9694b1a97.png</url>
      <title>DEV Community: Kaveh Alemi</title>
      <link>https://dev.to/kalemi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kalemi"/>
    <language>en</language>
    <item>
      <title>Agents are our users. Humans are our customers.</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Wed, 25 Nov 2026 17:00:00 +0000</pubDate>
      <link>https://dev.to/kalemi/agents-are-our-users-humans-are-our-customers-1b22</link>
      <guid>https://dev.to/kalemi/agents-are-our-users-humans-are-our-customers-1b22</guid>
      <description>&lt;p&gt;&lt;em&gt;Building a platform for agents means building it for the humans behind them too.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When we started Latchkey, we built a CI/CD platform for agents, not humans.&lt;/p&gt;

&lt;p&gt;CI/CD is the system that builds, tests and ships code every time it changes. We focused on how agents would do development and where CI/CD fit into that flow, and we optimized for it. We were dogfooding, building and shipping a lot, and the agent side of the product got very good.&lt;/p&gt;

&lt;p&gt;Then customers started raising the same point. They'd run multiple agents across their pipelines and jobs. The work got done. And then they'd have no idea what had happened, or where their spend was going.&lt;/p&gt;

&lt;p&gt;They were spending more with us than they had on GitHub Actions and self-hosted build servers. They were fine with that because of the productivity gain. But they kept telling us the same thing.&lt;/p&gt;

&lt;p&gt;"We don't actually know what's going on."&lt;/p&gt;

&lt;p&gt;We had built the platform for the agents. We hadn't built it for the people paying for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  We optimized one side
&lt;/h2&gt;

&lt;p&gt;Every platform that agents use has an agent control plane. It's the set of actions agents take on your platform while they work, and how those actions fit into the rest of their task. For us, that's agents running jobs, reading the results and fixing what broke.&lt;/p&gt;

&lt;p&gt;That's the side we optimized, and it's the side most teams building for agents optimize. Agents can do human-level work, so the instinct is to take the human out of the loop and make the agent's path as fast as possible.&lt;/p&gt;

&lt;p&gt;We used to tell ourselves this a lot. Agents are our users, but humans are our customers. Humans pay the bills, and agents drive the usage.&lt;/p&gt;

&lt;p&gt;Both halves of that are true. We had only built for the first one. And if the friction for humans keeps growing, the humans leave. When they leave, their agents leave with them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Taking a step back
&lt;/h2&gt;

&lt;p&gt;So we stepped back and talked to more of our customers.&lt;/p&gt;

&lt;p&gt;Before agents, a product had one user to design for. A person logged in, did the work and saw what happened as they used it. Now one person starts several agents, and the agents do the work. The person still needs to know what happened and still sets the rules, even though they aren't using the product directly anymore. That's a three-way problem between the human, their agents and your platform.&lt;/p&gt;

&lt;p&gt;Humans come into that problem at three points. They start an agent and watch it work. They come into your platform to set things up, and the platform passes that on to their agents. And they come back after something goes wrong.&lt;/p&gt;

&lt;p&gt;At the time, our dashboard showed standard CI/CD metrics like builds, tests, jobs and deployments. Nothing showed what agents were doing on the platform, and humans had no way to steer them.&lt;/p&gt;

&lt;p&gt;Fixing that is a balancing act. You want agents driving the control plane, because that's where the productivity comes from. But humans still need to be in the loop for the small administrative decisions, like what an agent is allowed to touch and how much it's allowed to spend. The job is to give humans those decisions without adding friction to everything else.&lt;/p&gt;

&lt;p&gt;Where we landed was two things. Humans need to see what their agents are doing, and they need to be able to act on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw63y5s54z06bfp5u91wa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw63y5s54z06bfp5u91wa.png" alt=" " width="799" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In our case, the agent control plane is agents running CI/CD jobs, reading the results and fixing what broke. Observability is an agent activity view with the cost of every run, and action is scoped API keys, budgets and one-click approvals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Show them where the spend went
&lt;/h2&gt;

&lt;p&gt;We're a usage-based platform. The more agents do, the more we bill the customer. So when an agent keeps running jobs that aren't working, the customer needs to know.&lt;/p&gt;

&lt;p&gt;We asked customers what they wanted to see. Beyond builds and performance, they wanted to know what their agents were doing. Which actions they took on the platform, which jobs they pushed out, which deployments they invoked, and how much each run cost.&lt;/p&gt;

&lt;p&gt;So we added agent activity to the dashboard. It's a god view of every agent's actions on Latchkey, with the cost attached to each run.&lt;/p&gt;

&lt;p&gt;Spend is usually what tipped customers off. Day to day, they cared more about productivity than cost. What they needed was the audit trail.&lt;/p&gt;

&lt;p&gt;Do they open those tabs every day? No. But if there's a one in 10,000 chance that something goes wrong, they need to be able to go back and see what happened. Knowing that data exists is what lets them trust their agents enough to keep them running.&lt;/p&gt;

&lt;p&gt;This applies well outside CI/CD. If customers bring agents to do work on your platform, track what those agents do and show it back to the human. It doesn't have to be on the first page of your product. It has to be there. A dashboard gets you 60 to 70% of the way. The rest comes from talking to your customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Acting on it
&lt;/h2&gt;

&lt;p&gt;Seeing what happened is only part of it. Humans also need to shape what happens next.&lt;/p&gt;

&lt;p&gt;If you want an agent-native platform, agents have to be able to take actions. That includes everyday actions, like running jobs and doing deployments in our case. It also includes admin actions, like security and cost settings.&lt;/p&gt;

&lt;p&gt;You don't want to hand the admin side to agents entirely. Humans need to come in at a high level and set the boundaries. For us, that came down to security, cost and performance.&lt;/p&gt;

&lt;h3&gt;
  
  
  Security boundaries
&lt;/h3&gt;

&lt;p&gt;An agent working on your platform is acting with someone's permissions. If the human can't control what those permissions are, every agent they bring is a risk they can't size up. So the first boundary a human needs is over what each agent is allowed to do.&lt;/p&gt;

&lt;p&gt;On Latchkey, that boundary is the API key. Each agent gets its own key, scoped to what it's allowed to do, like read, write or deploy. The human creates the key and hands it to the agent.&lt;/p&gt;

&lt;p&gt;Because the platform is built to be run by agents, we also let you create a key that can create keys. The reason is subagents. An agent splits its work across subagents, and each one needs to run its own CI/CD. Each one needs its own key. So the parent agent becomes a supervisor. It creates a key for each subagent and hands it over so they can do their work.&lt;/p&gt;

&lt;p&gt;That's a master-level permission, and you have to be careful with it. The human still decides which agent, if any, gets it.&lt;/p&gt;

&lt;p&gt;Whatever your platform does, the pattern carries over. Let the human define the boundary between their agents and your platform, one agent at a time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Financial boundaries
&lt;/h3&gt;

&lt;p&gt;Most platforms agents use are priced on usage. Agents keep going until something stops them. Let them do everything with no cost limit, and they can run up a huge bill. That's a headache for the customer, and it quickly becomes yours too.&lt;/p&gt;

&lt;p&gt;So the second boundary is money. We show what every run costs, and we flag jobs agents run that are unnecessary or could be scoped down.&lt;/p&gt;

&lt;p&gt;Humans can set a budget for each job an agent runs, or tell their agents to set it themselves. You could add a skill that says each job can't cost more than $2. There's also a stop limit. If total spend goes over $500, every action after that is blocked.&lt;/p&gt;

&lt;p&gt;The stop limit is the obvious one. The less obvious one is attaching cost limits to how agents use your platform, and showing that cost data back to the human.&lt;/p&gt;

&lt;h3&gt;
  
  
  Decisions that take one click
&lt;/h3&gt;

&lt;p&gt;The third area is performance. We track the CI/CD runs agents drive on Latchkey. We pull context from the customer's code base, from the agents running CI, and from the jobs themselves. Then we look for flaky tests (tests that pass or fail at random), failed deployments, runs taking longer than usual, and places where scoped tests would do.&lt;/p&gt;

&lt;p&gt;Each finding is a change we could make to the customer's code. The question is who gets to approve it.&lt;/p&gt;

&lt;p&gt;My test is simple. If nobody applies this change, is the world going to end tomorrow? If not, it's a passive change. A faster pipeline or a small security improvement is good to have, but it isn't do or die. Passive changes can go to agents and humans alike. The do-or-die changes are where you want a human.&lt;/p&gt;

&lt;p&gt;The human still sets the line. Whether an agent can approve these is a scope on its key. Leave it off, and the human becomes the approval gate.&lt;/p&gt;

&lt;p&gt;Whatever reaches a human is a one-click decision. We show a card with the premise, the findings and the evidence. One click approves it, and the system does the work, like opening a PR with the code change. One click rejects it. When someone rejects a type of finding, the system adapts and stops sending it. Over time, those clicks passively shape the interface between the human and the platform.&lt;/p&gt;

&lt;p&gt;Skip this, and every decision turns into a review. That's where a lot of the friction between humans and their agents comes from.&lt;/p&gt;

&lt;p&gt;People who work with agents are already used to making fast decisions. An agent asks, you answer, and it moves on. Platforms should meet them there. No digging through logs, no analysis. One concise decision they can understand immediately and act on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting the balance right
&lt;/h2&gt;

&lt;p&gt;If customers bring their own agents to your platform, it's easy to build only the agent control plane. From what I see talking to other vendors, most do.&lt;/p&gt;

&lt;p&gt;What gets skipped is the human interface. What humans need to see, and what they need to decide, on your platform or about their own agents.&lt;/p&gt;

&lt;p&gt;It's a balancing act, and getting one side wrong breaks the other. Lean too far toward the agents, and humans lose sight of what's happening. They can't explain the bill, they can't trace what went wrong, and they stop trusting their agents enough to let them run. Lean too far toward the humans, and every action waits on an approval. The agents slow down, and the productivity that brought customers to you in the first place is gone.&lt;/p&gt;

&lt;p&gt;What worked for us was letting agents do the work, and giving humans a clear view and a few fast decisions.&lt;/p&gt;

&lt;p&gt;We only figured that out because customers kept asking where their money went. Agents drive the usage, but humans pay the bills. If they can't see what their agents are doing, they won't keep paying for long.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>product</category>
      <category>development</category>
      <category>startup</category>
    </item>
    <item>
      <title>Latchkey vs BuildJet after the BuildJet shutdown</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 19:46:52 +0000</pubDate>
      <link>https://dev.to/kalemi/latchkey-vs-buildjet-after-the-buildjet-shutdown-2a25</link>
      <guid>https://dev.to/kalemi/latchkey-vs-buildjet-after-the-buildjet-shutdown-2a25</guid>
      <description>&lt;p&gt;Latchkey vs BuildJet is no longer a comparison you can act on: BuildJet announced the shutdown of BuildJet for GitHub Actions on 6 February 2026 and stopped running jobs on 31 March 2026. What is left is a migration, so this page is about the &lt;code&gt;buildjet-*&lt;/code&gt; labels still sitting in workflow files and what the surviving options cost against the rate you used to pay.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ylhjdgvhv2jq27a8o0d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ylhjdgvhv2jq27a8o0d.png" alt="Monthly bars: BuildJet $164 as priced, GitHub-hosted $184, Latchkey $149 plus a $5 to $49 plan" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The same month at each rate: 10,000 Linux minutes at 2 vCPU plus 2,000 macOS minutes, which BuildJet never sold either. Rates read 20 September 2026; the BuildJet bar is the rate its frozen page still shows.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;BuildJet sold managed runners on its own bare metal, adopted with a one-line &lt;code&gt;runs-on&lt;/code&gt; change, at $0.004 a minute for 2 vCPU and 8 GB rising to $0.048 for 32 vCPU. It published arm64 variants of every size and a drop-in cache action with 20 GB per repository per week, which was double the GitHub-hosted allowance. Its site is still up and still shows that rate card, under a banner reading "BuildJet for GitHub Actions has been shut down", so do not price your migration from it.&lt;/p&gt;

&lt;p&gt;Latchkey sells managed runners the same way, at $0.0025 a minute for 2 vCPU and 8 GB, with a dependency cache that replaces &lt;code&gt;buildjet/cache&lt;/code&gt; with a restore step and a save step, and transient failures repaired on the runner. It is the closest thing on price to what BuildJet was, and it is missing the thing a good share of BuildJet users were there for: there is no arm64, Windows or macOS runner, so an arm64 job has to land somewhere else.&lt;/p&gt;

&lt;p&gt;Every cell below was read from the vendor's own public pricing or documentation page on 20 September 2026. Where a vendor does not publish a number, the cell says "not published" instead of carrying a guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;BuildJet (ended 31 March 2026)&lt;/th&gt;
&lt;th&gt;GitHub-hosted&lt;/th&gt;
&lt;th&gt;Latchkey&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Price per minute, 2 vCPU Linux x64&lt;/td&gt;
&lt;td&gt;$0.004 (2 vCPU, 8 GB RAM), on a frozen page&lt;/td&gt;
&lt;td&gt;$0.006 (2 vCPU, 8 GB RAM, 14 GB SSD on a private repo; free on public repos)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$0.0025&lt;/strong&gt; (2 vCPU, 8 GB RAM, 100 GB disk)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price per minute, 4 vCPU Linux x64&lt;/td&gt;
&lt;td&gt;$0.008 (4 vCPU, 16 GB RAM)&lt;/td&gt;
&lt;td&gt;$0.012 as a larger runner&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$0.005&lt;/strong&gt; (4 vCPU, 16 GB RAM, 100 GB disk)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Free tier&lt;/td&gt;
&lt;td&gt;None published; concurrency subscriptions were made free on 6 February 2026 as the service wound down&lt;/td&gt;
&lt;td&gt;$12 of compute a month on Free, $18 on Pro and Team, $300 on Enterprise Cloud (2,000, 3,000 and 50,000 standard Linux minutes), private repos only&lt;/td&gt;
&lt;td&gt;30-day trial, then 2,000 included minutes a month on Developer, 4,000 on Launch, 6,000 on Scale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Billing granularity&lt;/td&gt;
&lt;td&gt;Per minute&lt;/td&gt;
&lt;td&gt;Every job is rounded up to the nearest whole minute&lt;/td&gt;
&lt;td&gt;Per minute&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runner sizes and OS&lt;/td&gt;
&lt;td&gt;2 to 32 vCPU on Ubuntu 22.04, x64 and arm64&lt;/td&gt;
&lt;td&gt;Linux x64 and arm64, Windows x64 and arm64, macOS; larger runners to 96 vCPU&lt;/td&gt;
&lt;td&gt;2, 4, 8 and 16 vCPU, Ubuntu 24.04 on x86_64 only. arm64, Windows and macOS are not offered&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache: type, limit, persistence&lt;/td&gt;
&lt;td&gt;BuildJet Cache, 20 GB per repo per week free, interoperable with &lt;code&gt;actions/cache&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;actions/cache&lt;/code&gt;, 10 GB per repository, entries removed after 7 days without access&lt;/td&gt;
&lt;td&gt;Size not published. &lt;code&gt;latchkey-dev/cache-action@v1&lt;/code&gt; replaces &lt;code&gt;actions/cache&lt;/code&gt; with a restore step and a save step, keeping &lt;code&gt;path&lt;/code&gt; and &lt;code&gt;key&lt;/code&gt; (no &lt;code&gt;restore-keys&lt;/code&gt;); entries are isolated per organization, versioned by OS, kept 14 days; a failed restore warns rather than failing the job&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Docker build acceleration&lt;/td&gt;
&lt;td&gt;BuildJet Cache in front of buildx; no managed layer-cache service after shutdown&lt;/td&gt;
&lt;td&gt;None built in. &lt;code&gt;cache-to: type=gha&lt;/code&gt; writes into the same 10 GB store&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;latchkey-dev/docker-cache-action@v1&lt;/code&gt;, layers held in a Latchkey-managed private registry per organization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concurrency limits&lt;/td&gt;
&lt;td&gt;Sold as a concurrency subscription, then made free during the wind-down&lt;/td&gt;
&lt;td&gt;20 concurrent jobs on Free, 40 on Pro, 60 on Team, 500 on Enterprise Cloud. macOS is capped separately at 5, or 50 on Enterprise&lt;/td&gt;
&lt;td&gt;Developer 20, Launch 40, Scale 80 busy runners per workspace; idle warm runners do not count&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where jobs run&lt;/td&gt;
&lt;td&gt;BuildJet's own bare metal, until 31 March 2026&lt;/td&gt;
&lt;td&gt;GitHub's own hosted fleet&lt;/td&gt;
&lt;td&gt;Latchkey's own AWS estate on m6a-class hosts, one job per runner, no inbound access, destroyed after the job&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-healing or retries&lt;/td&gt;
&lt;td&gt;Not offered&lt;/td&gt;
&lt;td&gt;None. A failed job waits for a person, or for retry logic you wrote yourself&lt;/td&gt;
&lt;td&gt;Built in: transient failures are diagnosed and retried inside the run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup change required&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;runs-on&lt;/code&gt; label change, now a label that resolves to nothing&lt;/td&gt;
&lt;td&gt;None; this is the default&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;runs-on&lt;/code&gt; label change. GitHub organization accounts only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What happened, and what it means for your workflow files
&lt;/h2&gt;

&lt;p&gt;BuildJet posted the notice on 6 February 2026: new signups closed that day, all concurrency subscriptions became free, pay-as-you-go billing continued as normal, and on 31 March 2026 the runners stopped taking jobs. The company's own migration advice was to move to GitHub-hosted runners, use GitHub's native arm64 runners for arm workflows, and swap the BuildJet cache action back to &lt;code&gt;actions/cache&lt;/code&gt;, which it describes as interoperable.&lt;/p&gt;

&lt;p&gt;If a &lt;code&gt;buildjet-*&lt;/code&gt; label is still in a workflow file today, the job does not fail loudly with a helpful message. It queues, waiting for a runner with that label to appear, until it hits the job timeout or somebody cancels it. That is worth grepping for across every repository and every branch that still builds, including the ones nobody has touched since March.&lt;/p&gt;

&lt;h2&gt;
  
  
  The label map
&lt;/h2&gt;

&lt;p&gt;Every BuildJet size maps to something, but not to one thing: GitHub sells its 4 vCPU and larger sizes as larger runners with labels you define yourself in organization settings, so there is no drop-in string to paste. Prices are per minute, read 20 September 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;BuildJet label&lt;/th&gt;
&lt;th&gt;Was&lt;/th&gt;
&lt;th&gt;GitHub-hosted&lt;/th&gt;
&lt;th&gt;Latchkey&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;buildjet-2vcpu-ubuntu-2204&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2 vCPU, 8 GB, $0.004&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ubuntu-latest&lt;/code&gt;, 2 vCPU, 8 GB, 14 GB disk, $0.006&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;latchkey-small&lt;/code&gt;, 2 vCPU, 8 GB, 100 GB disk, $0.0025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;buildjet-4vcpu-ubuntu-2204&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4 vCPU, 16 GB, $0.008&lt;/td&gt;
&lt;td&gt;A 4-core larger runner you name yourself, $0.012&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;latchkey-medium&lt;/code&gt;, 4 vCPU, 16 GB, $0.005&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;buildjet-8vcpu-ubuntu-2204&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8 vCPU, 32 GB, $0.016&lt;/td&gt;
&lt;td&gt;An 8-core larger runner, $0.022&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;latchkey-large&lt;/code&gt;, 8 vCPU, 32 GB, $0.01&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;buildjet-16vcpu-ubuntu-2204&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;16 vCPU, 64 GB, $0.032&lt;/td&gt;
&lt;td&gt;A 16-core larger runner, $0.042&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;latchkey-xlarge&lt;/code&gt;, 16 vCPU, 64 GB, $0.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;buildjet-32vcpu-ubuntu-2204&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;32 vCPU, 64 GB, $0.048&lt;/td&gt;
&lt;td&gt;A 32-core larger runner, $0.082&lt;/td&gt;
&lt;td&gt;No standard 32 vCPU size; custom runners bill at the xlarge rate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;buildjet-*-ubuntu-2204-arm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;arm64 at every size&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ubuntu-24.04-arm&lt;/code&gt;, $0.005 at 2 cores&lt;/td&gt;
&lt;td&gt;Not offered: arm64 has to go to GitHub, Blacksmith at $0.0025 or WarpBuild at $0.003&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The migration, in the order that avoids surprises
&lt;/h2&gt;

&lt;p&gt;The label is the easy part. What catches people is everything that was tuned around BuildJet: cache keys sized for a 20 GB weekly allowance, matrices sized for a concurrency subscription, and arm64 jobs that quietly have nowhere to go.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Grep every repository for &lt;code&gt;buildjet-&lt;/code&gt; and list the branches, not just the default one. Scheduled workflows on stale branches are the ones that queue forever.&lt;/li&gt;
&lt;li&gt;Move the x64 jobs first, one label at a time, and check the run times rather than assuming parity: BuildJet was bare metal, and a cloud runner at the same core count is not always the same wall-clock.&lt;/li&gt;
&lt;li&gt;Swap &lt;code&gt;buildjet/cache@v4&lt;/code&gt; back to &lt;code&gt;actions/cache@v6&lt;/code&gt; and re-check what you were caching. GitHub allows 10 GB per repository against BuildJet's 20 GB, so a cache tuned to the old ceiling will start evicting.&lt;/li&gt;
&lt;li&gt;Re-home arm64 jobs explicitly. &lt;code&gt;ubuntu-24.04-arm&lt;/code&gt; at $0.005 is the no-new-vendor answer; Blacksmith at $0.0025 and WarpBuild at $0.003 are cheaper if you are adding a vendor anyway.&lt;/li&gt;
&lt;li&gt;Re-check concurrency. GitHub allows 20 to 500 concurrent jobs by plan, which is a different ceiling from a bought concurrency subscription, and a wide matrix is where you notice.&lt;/li&gt;
&lt;li&gt;Price the result before you settle. The rate you were paying was $0.004, and the default you were told to move to is $0.006, which is a 50% rise on every Linux minute.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jobs:
   test:
-    runs-on: buildjet-4vcpu-ubuntu-2204
+    runs-on: latchkey-medium
     steps:
       - uses: actions/checkout@v7
-      - uses: buildjet/cache@v4
+      - uses: actions/cache@v6
         with:
           path: ~/.npm
           key: npm-${{ hashFiles('package-lock.json') }}

   test-arm:
-    runs-on: buildjet-4vcpu-ubuntu-2204-arm
+    runs-on: ubuntu-24.04-arm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Speed
&lt;/h2&gt;

&lt;p&gt;Not benchmarked yet; the runner benchmark report will replace this section. We have not run the same workload on these runners ourselves, and until we have, there is no number here worth quoting.&lt;/p&gt;

&lt;p&gt;The cheap way to get a real answer is to point one slow job at each candidate for a week, because runner selection is per job and the Actions run log gives you the timings for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost: the month you used to pay for, priced where you can actually run it now
&lt;/h2&gt;

&lt;p&gt;The same workload as every comparison here, 10,000 Linux minutes at 2 vCPU plus 2,000 macOS minutes a month on a private repository. BuildJet never sold macOS, so that column always landed on GitHub-hosted, which is exactly where it lands for Latchkey too.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;10,000 Linux minutes at 2 vCPU&lt;/th&gt;
&lt;th&gt;2,000 macOS minutes&lt;/th&gt;
&lt;th&gt;Monthly total&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;BuildJet, as priced&lt;/td&gt;
&lt;td&gt;$40 at $0.004/min&lt;/td&gt;
&lt;td&gt;Not offered: $124 on GitHub-hosted&lt;/td&gt;
&lt;td&gt;$164, until 31 March 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub-hosted&lt;/td&gt;
&lt;td&gt;$60 at $0.006/min&lt;/td&gt;
&lt;td&gt;$124 at $0.062/min&lt;/td&gt;
&lt;td&gt;$184&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latchkey&lt;/td&gt;
&lt;td&gt;$25 at $0.0025/min&lt;/td&gt;
&lt;td&gt;Not offered: $124 on GitHub-hosted&lt;/td&gt;
&lt;td&gt;$149 plus $5 to $49 a month for the plan&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Doing nothing but taking BuildJet's advice costs $20 a month more on this mix, because $0.004 became $0.006. Latchkey is $149 plus a $5 to $49 plan, so at the Launch tier it lands within a few dollars of the BuildJet bill, and at Scale it is above it. Latchkey's own plan is $5 to $49 a month on top of that compute, and its 2,000 to 6,000 included minutes are not netted off, so the figure is gross on both counts.&lt;/p&gt;

&lt;p&gt;That is the honest shape of this migration: nobody is getting a windfall out of a vendor closing. The options that beat BuildJet's old rate on Linux are Namespace at $0.002 a minute prepaid for a 2 vCPU shape with 4 GB, half the memory BuildJet gave you, and WarpBuild BYOC at $0.002 plus your own cloud bill. The options that match it are Blacksmith and WarpBuild at $0.004. Latchkey undercuts all of the managed ones at $0.0025 and is the only one that also repairs a failed job, at the cost of a plan fee and no arm64.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where BuildJet users can actually land
&lt;/h2&gt;

&lt;p&gt;Every option below is a &lt;code&gt;runs-on&lt;/code&gt; label change from where you are now, which is the one thing that has not changed since BuildJet. Rates are the published 2 vCPU Linux rate, read 20 September 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;2 vCPU Linux&lt;/th&gt;
&lt;th&gt;arm64&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GitHub-hosted&lt;/td&gt;
&lt;td&gt;$0.006&lt;/td&gt;
&lt;td&gt;$0.005&lt;/td&gt;
&lt;td&gt;No new vendor, and the only free option on public repositories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blacksmith&lt;/td&gt;
&lt;td&gt;$0.004&lt;/td&gt;
&lt;td&gt;$0.0025&lt;/td&gt;
&lt;td&gt;Matching the old rate, with 3,000 free minutes a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WarpBuild&lt;/td&gt;
&lt;td&gt;$0.004&lt;/td&gt;
&lt;td&gt;$0.003&lt;/td&gt;
&lt;td&gt;Matching the old rate, or $0.002 in your own cloud under BYOC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Namespace&lt;/td&gt;
&lt;td&gt;$0.002 prepaid&lt;/td&gt;
&lt;td&gt;Published by shape&lt;/td&gt;
&lt;td&gt;The lowest published rate, at 4 GB per 2 vCPU rather than 8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Depot&lt;/td&gt;
&lt;td&gt;$0.006&lt;/td&gt;
&lt;td&gt;$0.006&lt;/td&gt;
&lt;td&gt;Per-second metering and 100 GB of disk, at GitHub list price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latchkey&lt;/td&gt;
&lt;td&gt;$0.0025&lt;/td&gt;
&lt;td&gt;Not offered&lt;/td&gt;
&lt;td&gt;The lowest managed x64 rate, plus failures repaired on the runner&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The verdict
&lt;/h2&gt;

&lt;p&gt;There is no version of this that makes BuildJet's closure good news, and the default path its own post recommends, moving everything to &lt;code&gt;ubuntu-latest&lt;/code&gt;, raises your Linux rate by half. If you are editing every workflow file anyway, that is the cheapest moment you will ever have to price the alternatives, because the edit is identical whichever label you paste. Latchkey is the lowest published managed x64 rate of the group and the only one that repairs a transient failure instead of billing you twice for it, and it is the wrong answer if your matrix has arm64, Windows or macOS in it, because it has none of those. Blacksmith and WarpBuild both match BuildJet's old $0.004 with arm64 included, and GitHub-hosted is the answer that adds no vendor at all. Pick on the shape of your matrix, not on the closure.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is BuildJet shutting down?
&lt;/h3&gt;

&lt;p&gt;It has already shut down. BuildJet announced on 6 February 2026 that BuildJet for GitHub Actions was closing, stopped new signups that day, made concurrency subscriptions free, and ended job execution on 31 March 2026. The marketing site and documentation are still online, which is why the rate card still looks live; the runners behind those labels are not.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the best BuildJet alternative?
&lt;/h3&gt;

&lt;p&gt;It depends on which part of BuildJet you were buying. For the $0.004 Linux rate, Blacksmith and WarpBuild both match it and both publish arm64 as well. For the lowest published rate, Namespace is $0.002 a minute prepaid, with 4 GB of RAM per 2 vCPU rather than 8. For the lowest managed x64 rate with failures repaired on the runner, Latchkey is $0.0025. For adding no vendor at all, GitHub-hosted is $0.006.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does BuildJet Cache still work?
&lt;/h3&gt;

&lt;p&gt;No, and BuildJet said so in its shutdown post: the guidance is to swap the cache action back to &lt;code&gt;actions/cache&lt;/code&gt;, which it describes as interoperable with its own. Do check what you were storing. BuildJet published 20 GB per repository per week free, and GitHub allows 10 GB per repository, so a cache sized for the old allowance will start evicting entries and your hit rate will drop before anyone notices.&lt;/p&gt;

&lt;h3&gt;
  
  
  What replaces BuildJet arm64 runners?
&lt;/h3&gt;

&lt;p&gt;GitHub now sells native arm64 runners at $0.005 a minute for 2 cores, which is the no-new-vendor answer and the one BuildJet itself pointed at. If you are adding a vendor anyway, Blacksmith lists Ubuntu arm64 at $0.0025 and WarpBuild at $0.003, both below the x64 rate on the same platform. Latchkey has no arm64 runner, so those jobs cannot follow the rest of your pipeline there.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://buildjet.com/for-github-actions/blog/we-are-shutting-down" rel="noopener noreferrer"&gt;BuildJet: we are shutting down BuildJet for GitHub Actions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://buildjet.com/for-github-actions/docs/runners" rel="noopener noreferrer"&gt;BuildJet runner tags and per-minute rates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://buildjet.com/for-github-actions/docs/guides/migrating-to-buildjet-cache" rel="noopener noreferrer"&gt;BuildJet Cache: 20 GB per repo per week&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/billing/reference/actions-runner-pricing" rel="noopener noreferrer"&gt;GitHub Actions per-minute rates by runner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://latchkey.dev/pricing" rel="noopener noreferrer"&gt;Latchkey pricing: plans and per-minute runner rates&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>cloud</category>
    </item>
    <item>
      <title>GitHub Actions waiting for approval to run workflows for this PR</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 15:01:38 +0000</pubDate>
      <link>https://dev.to/kalemi/github-actions-waiting-for-approval-to-run-workflows-for-this-pr-1a56</link>
      <guid>https://dev.to/kalemi/github-actions-waiting-for-approval-to-run-workflows-for-this-pr-1a56</guid>
      <description>&lt;p&gt;GitHub Actions waiting for approval to run workflows means a maintainer has to release the run before any job is created. Nothing has failed, nothing is queued on a runner, and the checks that are required to merge cannot report until somebody clicks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy5wznttara8nehkw3mch.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy5wznttara8nehkw3mch.png" alt="A fork pull request event held before dispatch, with no run, no job and no runner made" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The hold happens before dispatch, so there is no job to inspect. GitHub deletes runs that have been awaiting approval for more than 30 days.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;A pull request from a contributor shows no progress at all. There is no red check and no running job, just a note that a workflow is awaiting approval, and the merge box reports that required checks have not completed. From the contributor's side it looks like the automation is broken; from the maintainer's side it is easy to miss, because nothing failed and nothing sent a failure notification.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Pull request merge box, quoted from timqian/open-source-jobs#181&lt;br&gt;
1 workflow awaiting approval&lt;br&gt;
This workflow requires approval from a maintainer.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The contributor has not had a pull request merged here before

The common configuration. First-time contributors are held and everyone else is not, which is why the situation appears sporadically and usually to the people least able to interpret it.

### The policy applies to all fork pull requests

A stricter setting holds every outside contribution regardless of history. Repositories that receive occasional drive-by contributions can sit under this without anyone noticing, because the maintainers never trigger it themselves.

### An organization or enterprise policy is stricter than the repository

The repository settings look permissive and runs are still held, because a higher level is deciding. In our experience this is the version that consumes the most time, since the repository page appears to contradict the behavior.

### The pull request was opened by an automation account treated as an outside contributor

Worth ruling out when a bot's pull requests stall. An account without prior merged contributions is subject to the same rule, so a newly introduced automation can start needing approval on every run it opens.

## How to fix it

### Approve the run from the pull request

1. Open the pull request and read the changed files, including any change to a workflow file.
2. Click the **Awaiting approval** button at the top right to open the **Merge status** panel.
3. Click **Approve workflows to run**.
4. Expect to repeat this for later pushes until the contributor has a merged pull request here.

### Decide the policy deliberately rather than inheriting it

Review the setting at the repository level and check whether the organization or enterprise is imposing something stricter. A project that wants drive-by contributions and a project that runs expensive jobs on every push want different answers, and the default is not tuned for either.

### Make the contributor-facing checks need no approval to be useful

If the valuable signal is lint and unit tests, consider whether those need secrets or write access at all. Work that runs safely without either is the work that argues best for a looser approval policy.

### Watch the 30 day limit on long-lived pull requests

A pull request that stalls in review can lose its pending run entirely. If a run has disappeared rather than completed, push a commit or close and reopen the pull request to produce a fresh event, then approve that.

## How to prevent it

- Subscribe the people who triage contributions to the pull requests that will hold, since nothing sends a failure notification.
- Say in the contributing guide that a maintainer has to release the first run, so a contributor does not read silence as breakage.
- Check the organization and enterprise settings before concluding the repository is misconfigured.
- Keep the checks required for merge to ones that can run without approval wherever that is possible.

## Nothing is wrong, and that is the difficulty

This is not an error and it does not appear in any log, because there is no log. The Actions service holds the event, decides that a person has to authorize it, and stops there. No run is scheduled, no job is created, no runner is assigned and no step exists to inspect. Everything you can learn about it is in the pull request page rather than in the Actions tab.

That is also why it blocks merging so effectively. Required status checks are satisfied by checks reporting success, and a check that was never dispatched reports nothing at all. The pull request is not failing its requirements; it is failing to have results, which the merge box presents in much the same way.

## What the maintainer actually does

The approval is two clicks and it is in a place people do not look, which is most of why these sit for days. GitHub documents the sequence: open the pull request, go to the changed files and read them, and then, in its words, "click the button in the upper right corner labeled **Awaiting approval**, which will open the **Merge status** panel", and "Find and click **Approve workflows to run**".

The instruction to read the changes first is not decoration. Approving dispatches the contributor's workflow file and the contributor's code onto a runner holding your repository's token, so the review is the control the policy exists to create.

## Which contributors are held, and for how long

The policy is configurable at three levels and the choice decides how often anyone has to do this.

| Where the policy is set | What it controls | Practical effect |
| --- | --- | --- |
| Repository settings | Which fork contributors need approval here | The usual place to loosen or tighten it for one project |
| Organization settings | A default across the organization's repositories | Where a policy that surprises a single repository usually comes from |
| Enterprise settings | Fork pull request workflows from outside collaborators | Can hold the others off entirely |

&amp;gt; There is a deadline attached to the waiting itself. GitHub states that "Workflow runs that have been awaiting approval for more than 30 days are automatically deleted". A pull request left alone long enough therefore loses the pending run rather than gaining a result, and a new event has to be produced before anything can be approved.

## Why there is no recorded run on this page

The subject of this page is a run that does not exist. There is nothing to record because nothing was dispatched: no machine picked the work up, no step executed, and the only artifact is a sentence in the pull request's merge box, which is quoted above from a public issue. A recorded run would necessarily be a run that had already been approved, which is the state this page is about not being in.

## FAQ

### Why do required checks never report while this is pending?

Because they were never dispatched. Required status checks are satisfied by results, and a run that is held before dispatch produces none. The pull request is not failing the requirement so much as having nothing to evaluate, which the merge box shows in a similar way.

### Where is the approval button?

On the pull request rather than in the Actions tab. GitHub's instructions are to review the changed files, then click the button labeled **Awaiting approval** in the upper right corner, which opens the **Merge status** panel, and then click **Approve workflows to run**.

### Do I have to approve every push from the same contributor?

Under the common configuration, yes, until that contributor has a pull request merged in the repository. Each new event is held on its own. Repositories that receive sustained work from one outside contributor often revisit the policy for this reason.

### What happens if nobody approves it?

It is eventually removed. GitHub deletes workflow runs that have been awaiting approval for more than 30 days, so a neglected pull request loses the pending run rather than accumulating one. A new event has to be created before there is anything left to approve.

## References

- [GitHub Actions: approving workflow runs from forks, and the 30 day limit](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/approve-runs-from-forks)
- [GitHub: managing GitHub Actions settings for a repository](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository)
- [timqian/open-source-jobs#181: the merge box text on a held run](https://github.com/timqian/open-source-jobs/issues/181)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>peter-evans/create-pull-request 403 and the setting behind it</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:59:38 +0000</pubDate>
      <link>https://dev.to/kalemi/peter-evanscreate-pull-request-403-and-the-setting-behind-it-4h8k</link>
      <guid>https://dev.to/kalemi/peter-evanscreate-pull-request-403-and-the-setting-behind-it-4h8k</guid>
      <description>&lt;p&gt;A peter-evans/create-pull-request 403 is worth reading twice, because the step does two different privileged things and only one of them usually fails. If the branch appears in the repository, the push succeeded and what was refused was the pull request itself.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fodbx9vxccaf7tmm50nnx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fodbx9vxccaf7tmm50nnx.png" alt="A branch push that succeeds and a pull request creation that a repository setting refuses" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Two privileged calls in one step. Whether the branch exists afterwards tells you which of them was refused, and they are governed by different things.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;The action runs, the commit is made, and the branch exists afterwards. The step still fails, and the message is a complete sentence about GitHub Actions not being permitted to create or approve pull requests. The workflow already declares &lt;code&gt;contents: write&lt;/code&gt; and &lt;code&gt;pull-requests: write&lt;/code&gt;, so the permissions block looks correct and is, which makes the sentence read like a bug in the action.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Message GitHub returns on the create call, quoted from career-ops-hq/career-ops#4340&lt;br&gt;
Error: GitHub Actions is not permitted to create or approve pull requests.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The repository or organization setting for Actions creating pull requests is off

The common case when the branch exists. It is off by default in many organizations, it is not visible from the workflow file, and it produces a message that sounds like a permission so the permissions block gets edited instead.

### The job did not grant pull-requests: write

Still worth checking, because it is necessary even when the setting is on. The distinguishing feature is the wording: a missing scope produces a resource-not-accessible refusal rather than the sentence about not being permitted to create or approve.

### The run is a fork pull request, so the push failed too

When the branch is absent, the earlier call is the one that was refused. Write scopes are downgraded for fork pull requests after the block is read, so nothing the workflow declares restores them and the action never reaches the creation step.

### The head branch belongs to a fork and the token cannot modify it

A narrower case the action handles specially. When maintainer edits are requested on a branch the token has no write access to, the action warns about that explicitly and suggests turning the option off. The warning names the situation, so it is not easily confused with the setting.

## How to fix it

### Check for the branch, then choose the repair

1. Look for the branch the action was pushing. Its presence separates the two failures completely.
2. Branch present: change the setting, in the repository and possibly in the organization.
3. Branch absent: fix the token, either by granting `contents: write` or by changing how the workflow is triggered.

### Turn the setting on where it is held

Enable **Allow GitHub Actions to create and approve pull requests** under Workflow permissions. Check the organization settings as well as the repository ones, because the organization can hold it off for every repository it owns. Nothing in the workflow file substitutes for this.

### Declare both scopes on the job

The setting and the scopes are both required, so grant what the two calls need and keep them on the job rather than the workflow.



```.github/workflows/regenerate.yml (illustrative)
jobs:
  update:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
    steps:
      - uses: actions/checkout@v5
      - run: ./scripts/regenerate.sh
      - uses: peter-evans/create-pull-request@v7
        with:
          branch: chore/regenerate
          title: 'chore: regenerate'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Use an app installation token when the setting cannot be changed
&lt;/h3&gt;

&lt;p&gt;The setting governs &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;. A GitHub App installation token is a different credential and is not covered by it, so passing one to the action is the durable answer in organizations where the toggle stays off. A pull request opened this way is also attributed to the app rather than to the Actions bot.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to prevent it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Record the Workflow permissions setting alongside the workflow, since nothing in the file hints that it exists.&lt;/li&gt;
&lt;li&gt;Grant &lt;code&gt;contents: write&lt;/code&gt; and &lt;code&gt;pull-requests: write&lt;/code&gt; together on any job that opens a pull request.&lt;/li&gt;
&lt;li&gt;Prefer an app installation token in organizations that keep the toggle off as policy.&lt;/li&gt;
&lt;li&gt;Check for the branch first whenever this step fails, before reading anything else.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  One step, two privileged calls
&lt;/h2&gt;

&lt;p&gt;The action pushes a branch and then asks GitHub to open a pull request from it. Those are separate operations against separate parts of the permission model, and treating the step as a single unit is what sends people to the wrong setting. The branch is the evidence: if it is in the repository after the failure, the push was allowed and only the second call was refused.&lt;/p&gt;

&lt;p&gt;That distinction also tells you what to stop doing. Adding &lt;code&gt;contents: write&lt;/code&gt; cannot help a refused pull request creation, and it is the most common first response because it is the permission everyone remembers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which failure the branch tells you about
&lt;/h2&gt;

&lt;p&gt;Look for the branch before reading anything else. The three outcomes have nothing in common except the step they occur in.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Branch present afterwards&lt;/th&gt;
&lt;th&gt;What was refused&lt;/th&gt;
&lt;th&gt;Where the repair lives&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The pull request creation, by a repository or organization setting&lt;/td&gt;
&lt;td&gt;Settings, under Workflow permissions, not the workflow file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;The push, by the token's permissions or the fork rule&lt;/td&gt;
&lt;td&gt;The job's &lt;code&gt;permissions&lt;/code&gt; block, or the trigger&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Yes, and a pull request already exists&lt;/td&gt;
&lt;td&gt;Nothing; the action reports it and continues&lt;/td&gt;
&lt;td&gt;No repair needed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;The setting in the first row is named exactly: &lt;strong&gt;Allow GitHub Actions to create and approve pull requests&lt;/strong&gt;, which GitHub describes as configuring "whether &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; can create and approve pull requests". It lives under Workflow permissions in repository settings and has an organization-level counterpart that can hold it off even when the repository's own box is ticked.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why the permissions block cannot reach it
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;permissions&lt;/code&gt; key describes what scopes the token carries. This setting describes whether the token is allowed to perform one particular action at all, regardless of scope, and it exists because a workflow that can open and approve its own pull requests can route around review. Those are different mechanisms, which is why a job holding &lt;code&gt;pull-requests: write&lt;/code&gt; is still refused.&lt;/p&gt;

&lt;p&gt;The practical consequence is that the fix may not be yours to make. On an organization-owned repository the toggle may be held at the organization level, and the person who can change it is not necessarily the person reading the failure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why there is no recorded run on this page
&lt;/h2&gt;

&lt;p&gt;The deciding input is a checkbox in a settings page. We could record a run against a repository of ours with that box cleared, and the log would contain the same single sentence that is already quoted above, proving only that we had cleared it. Nothing about the runner participates: the push and the creation are both server-side decisions, made before and after the step's own work. The sentence and the setting's exact name are both published, and those are what the page rests on.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why did the branch push succeed if the token is refused?
&lt;/h3&gt;

&lt;p&gt;Because two different calls were made. Pushing the branch needs &lt;code&gt;contents: write&lt;/code&gt;, which the job had, and opening the pull request is governed separately by a repository setting that can forbid it outright. The branch surviving the failure is the clearest evidence of which call was refused.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which setting exactly, and where is it?
&lt;/h3&gt;

&lt;p&gt;It is called &lt;strong&gt;Allow GitHub Actions to create and approve pull requests&lt;/strong&gt;, under Workflow permissions in the repository's Actions settings, and GitHub describes it as configuring whether &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; can create and approve pull requests. An organization-level equivalent can override the repository one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does pull-requests: write fix this?
&lt;/h3&gt;

&lt;p&gt;Not on its own. The scope is necessary and the setting is also necessary, and they are enforced separately. A job with the scope and without the setting gets the sentence about not being permitted; a job with the setting and without the scope gets a resource-not-accessible refusal instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does using a GitHub App token avoid the problem?
&lt;/h3&gt;

&lt;p&gt;Because the setting applies to &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; specifically. An installation token from an app you installed is a separate credential with its own permissions, so it is not subject to that toggle. It is the usual answer where organization policy keeps the setting off and is not going to change.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository" rel="noopener noreferrer"&gt;GitHub: managing GitHub Actions settings for a repository, Workflow permissions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/peter-evans/create-pull-request/blob/main/src/github-helper.ts" rel="noopener noreferrer"&gt;peter-evans/create-pull-request: src/github-helper.ts, the create call and its error handling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/career-ops-hq/career-ops/issues/4340" rel="noopener noreferrer"&gt;career-ops-hq/career-ops#4340: the branch updated and the creation refused&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>GitHub Actions Pull Request is not mergeable with auto-merge</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:57:44 +0000</pubDate>
      <link>https://dev.to/kalemi/github-actions-pull-request-is-not-mergeable-with-auto-merge-4gid</link>
      <guid>https://dev.to/kalemi/github-actions-pull-request-is-not-mergeable-with-auto-merge-4gid</guid>
      <description>&lt;p&gt;GitHub Actions Pull Request is not mergeable is GitHub declining a merge call for the state the pull request is in right now, and the same sentence also shows up on the timeline when auto-merge is switched off later. Which of the two you are reading decides whether anything was wrong with your workflow at all.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4z2iwi1ix29camloouo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4z2iwi1ix29camloouo.png" alt="A merge call refused now, beside auto-merge being withdrawn later on the same timeline" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Two different moments. A step error reports the state at the instant of the call; a timeline entry reading "auto-merge was automatically disabled" reports a state that changed after it was armed.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;A workflow that merges pull requests fails on the merge step, usually not every time. The pull request looks mergeable in the browser by the time anyone checks, and merging it by hand works. Separately, pull requests that had auto-merge enabled sometimes lose it, with a timeline entry carrying the same wording and no failing workflow anywhere. The two are easy to conflate because the sentence is identical.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Actions log, quoted from juliangruber/merge-pull-request-action#4&lt;/p&gt;

&lt;h2&gt;
  
  
  [error]Pull Request is not mergeable
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The workflow merged before mergeability had been computed

The common cause of the intermittent step error. A job that creates or updates a pull request and merges it in the same run frequently arrives before the answer exists. The failure moves between runs because it depends on how quickly the computation finished.

### Required checks or reviews are not satisfied yet

Branch protection makes a pull request unmergeable until its conditions are met, and a workflow that merges as soon as its own job finishes has no reason to believe the other required checks are done. The pull request becomes mergeable minutes later, which is why it looks fine afterwards.

### The base branch moved and created a conflict

The usual cause of the timeline version. A pull request that was mergeable when auto-merge was armed stops being so when something else lands on the base branch, and GitHub withdraws auto-merge rather than keeping a promise it can no longer keep.

### The pull request is a draft or already closed

Worth ruling out quickly, because it produces a refusal that never clears. Neither state is mergeable, and a workflow that iterates over open pull requests can pick up a draft without meaning to.

## How to fix it

### Decide which version you have before editing anything

1. If the sentence is in a workflow log, it is a refused call and the timing is the first suspect.
2. If it is on the pull request timeline beside auto-merge being disabled, no workflow failed and the base branch is the first suspect.
3. If a mutation name appears in parentheses, it is a permission problem and belongs to a different repair entirely.

### Enable auto-merge instead of merging directly

Let GitHub wait for the conditions rather than asking your job to guess when they are met. This removes the race outright and is the right shape for almost every release workflow.



```.github/workflows/automerge.yml (illustrative)
- run: gh pr merge "$NUMBER" --auto --squash
        env:
          GH_TOKEN: ${{ github.token }}
          NUMBER: ${{ github.event.pull_request.number }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Wait for a definite answer if you must merge directly
&lt;/h3&gt;

&lt;p&gt;Poll the pull request until its mergeability is no longer unknown, then act on the result. Treat an unknown state as "ask again", not as "not mergeable", which is the mistake most hand-rolled merge steps make.&lt;/p&gt;

&lt;h3&gt;
  
  
  Re-arm auto-merge after resolving a conflict
&lt;/h3&gt;

&lt;p&gt;Auto-merge is not restored automatically once it has been withdrawn. After the conflict is resolved the pull request sits there mergeable and unmerged, which looks like the automation failing silently. Enabling it again is the whole repair.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to prevent it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Prefer auto-merge over a direct merge call in any workflow that does not control when the checks finish.&lt;/li&gt;
&lt;li&gt;Never treat an unknown mergeability as a negative answer.&lt;/li&gt;
&lt;li&gt;Watch for the timeline entry on repositories that rely on auto-merge, since nothing fails when it is withdrawn.&lt;/li&gt;
&lt;li&gt;Exclude drafts explicitly when a workflow iterates over open pull requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Two places the sentence appears
&lt;/h2&gt;

&lt;p&gt;Before changing a workflow, establish which of these you have. They have different causes and only one of them involves your job at all.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where you found it&lt;/th&gt;
&lt;th&gt;What produced it&lt;/th&gt;
&lt;th&gt;What it says about the pull request&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A red step in a workflow run&lt;/td&gt;
&lt;td&gt;A merge call refused at the moment your job made it&lt;/td&gt;
&lt;td&gt;It was not mergeable then, whatever it looks like now&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A timeline entry on the pull request&lt;/td&gt;
&lt;td&gt;GitHub withdrawing auto-merge after it was enabled&lt;/td&gt;
&lt;td&gt;It became unmergeable at some point after auto-merge was armed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A refusal naming a mutation in parentheses&lt;/td&gt;
&lt;td&gt;A permission refusal rather than a state one&lt;/td&gt;
&lt;td&gt;Nothing, because the call never reached the merge logic&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;The third row is a different error wearing similar clothes. A message such as &lt;code&gt;Resource not accessible by personal access token (enablePullRequestAutoMerge)&lt;/code&gt; is about the credential, not the pull request, and no amount of rebasing will change it. The parenthesized mutation name is the tell.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Mergeability is computed after you ask
&lt;/h2&gt;

&lt;p&gt;GitHub does not keep a merge result standing by. When something asks whether a pull request can be merged, a background computation runs, and until it finishes the state is unknown. A workflow that opens or updates a pull request and immediately tries to merge it is racing that computation, and an unknown state is not a mergeable one.&lt;/p&gt;

&lt;p&gt;This explains the most confusing property of the step-error version: it clears on a rerun, and it clears when a human looks, because both of those happen later. The pull request is not being fixed in between. It is simply being asked a second time, after the answer exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why auto-merge is the better instrument
&lt;/h2&gt;

&lt;p&gt;A direct merge call asks "merge this now" and fails whenever the answer is no. Auto-merge asks "merge this when you can", which is what a release workflow usually means. Once enabled, GitHub waits for required checks and required reviews and merges without another run, so there is no race to lose.&lt;/p&gt;

&lt;p&gt;The cost is the timeline case on this page. Auto-merge is withdrawn if the pull request becomes unmergeable, most often because the base branch moved and produced a conflict, and the entry is easy to miss. Treat that as a notification rather than as a failure, and re-arm it after resolving the conflict.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why there is no recorded run on this page
&lt;/h2&gt;

&lt;p&gt;Both versions depend on a pull request that exists on a specific repository at a specific moment, with its own branch protection, its own required checks and its own base branch history. We could open one on our own repository, but every condition that decides the outcome would be ours: our required reviewers, our checks, our merge queue setting. The race in particular is a timing property of GitHub's own background computation, which we can describe but cannot schedule. The line above is quoted from an issue against a merge action.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why does it pass when I rerun the job?
&lt;/h3&gt;

&lt;p&gt;Because the second attempt happens later. Mergeability is computed in the background when something asks, so a job that merges immediately after creating or updating a pull request can arrive before the result exists. A rerun asks again once the answer is there, without anything about the pull request having changed.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does "auto-merge was automatically disabled" mean?
&lt;/h3&gt;

&lt;p&gt;That GitHub withdrew a promise it could no longer keep. Auto-merge waits for the pull request to become mergeable, and if the pull request becomes unmergeable instead, usually because the base branch moved and produced a conflict, it is switched off and the timeline records it with this wording. No workflow failed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is a mutation name in parentheses the same error?
&lt;/h3&gt;

&lt;p&gt;No. That form is a permission refusal, identifying which GraphQL mutation was declined, and it means the credential lacks the permission the operation requires. The pull request state is irrelevant to it, so rebasing or waiting will not help.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does enabling auto-merge require anything of the repository?
&lt;/h3&gt;

&lt;p&gt;It has to be allowed in the repository settings before anything can enable it, and the caller needs the permission to do so. If the setting is off, attempts to enable it fail for that reason rather than for the pull request state, which is another case where reading the exact wording saves time.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request" rel="noopener noreferrer"&gt;GitHub REST API: merge a pull request&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request" rel="noopener noreferrer"&gt;GitHub: automatically merging a pull request&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/juliangruber/merge-pull-request-action/issues/4" rel="noopener noreferrer"&gt;juliangruber/merge-pull-request-action#4: the step error in a real run&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>GitHub Actions input required and not supplied: token error</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:55:56 +0000</pubDate>
      <link>https://dev.to/kalemi/github-actions-input-required-and-not-supplied-token-error-1hlc</link>
      <guid>https://dev.to/kalemi/github-actions-input-required-and-not-supplied-token-error-1hlc</guid>
      <description>&lt;p&gt;The GitHub Actions input required and not supplied: token error comes from &lt;code&gt;@actions/core&lt;/code&gt;, which read an environment variable, found it empty, and threw. The word after the colon is the name of the action's input, which is usually not the name of whatever you set.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3h0etc9klloeifjirih.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3h0etc9klloeifjirih.png" alt="One secret name becoming an action input name and then an environment variable name" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;getInput reads process.env with the input name uppercased and prefixed by INPUT_, then throws when the value is empty and the option required is set.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;The step fails within a second of starting and nothing else in the job is affected. The message names &lt;code&gt;token&lt;/code&gt;, so the search begins for a secret called &lt;code&gt;token&lt;/code&gt;, and there is rarely one. Steps earlier in the same job that use other secrets work, which makes the whole thing look like a problem with this action specifically rather than with the value it received.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Actions log, quoted from johnm254/openjarvis#1&lt;/p&gt;

&lt;h2&gt;
  
  
  [error]Input required and not supplied: token
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The secret referenced in the with: block does not exist under that name

The common case. A misspelling, a secret created in a different repository, or a name that was changed in settings and not in the workflow all produce an empty interpolation. Nothing warns about referencing a secret that is not there; the expression simply resolves to an empty string.

### The job cannot receive secrets on this event

A pull request from a fork gets no repository secrets at all, so every reference empties at once. The workflow is unchanged and correct, and the same step passes on a push. If several secret-dependent steps fail together, this is usually why.

### The secret exists at a scope this job cannot read

An organization secret not shared with the repository, or an environment secret in a job that does not name the environment, both resolve to empty. In our experience the environment case is the most persistent, because the secret is plainly visible in settings and the job simply is not in the environment that holds it.

### A reusable workflow was called without the secret being passed

The called workflow sees only what the caller forwarded. Without `secrets: inherit` or an explicit mapping, a step inside it that requires a token gets an empty string, and the failure is reported from a file that never mentions your secret.

## How to fix it

### Read the with: block before the settings page

1. Find the failing step and the line whose left-hand side matches the name in the message.
2. Take the name on the right-hand side, which is yours, and confirm it exists at a scope this job can read.
3. If there is no such line, the action expected an input it has no default for, and one has to be supplied.

### Delete the override when the action has a working default

If the action declares `default: ${{ github.token }}` for the input, passing a secret that does not exist is strictly worse than passing nothing. Removing the line restores the default and often ends the problem outright.

### Name the environment when the secret lives in one

An environment secret is only readable by a job that declares the environment. The declaration belongs on the job, and adding it changes which secrets the job can see.



```.github/workflows/publish.yml (illustrative)
jobs:
  publish:
    runs-on: ubuntu-latest
    environment: production
    steps:
      - uses: some-org/publish-action@v2
        with:
          token: ${{ secrets.PUBLISH_TOKEN }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Forward secrets into a reusable workflow
&lt;/h3&gt;

&lt;p&gt;Pass them explicitly when you want to see what crosses the boundary, or inherit them when the called workflow is yours and the list would be long. The choice is about reviewability rather than correctness.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```.github/workflows/release.yml (illustrative)&lt;br&gt;
jobs:&lt;br&gt;
  call-publish:&lt;br&gt;
    uses: ./.github/workflows/publish.yml&lt;br&gt;
    secrets:&lt;br&gt;
      PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## How to prevent it

- Keep the action's input name and your secret name visibly different, so the message is never mistaken for your name.
- Let a documented default stand unless a different identity is genuinely needed.
- Declare the environment on any job that reads environment secrets, at the time you write the job.
- When a workflow must run on fork pull requests, guard the steps that need secrets rather than letting them fail.

## What the check actually does

The function is four lines. `getInput` builds an environment variable name by taking the input name, replacing spaces with underscores, uppercasing it and prefixing `INPUT_`. It reads that variable, defaulting to an empty string if it is absent. Then, if the caller passed `required` and the value is empty, it throws the message on this page with the input name interpolated into it.

Two things follow. The check cannot distinguish an input that was never provided from one that was provided as an empty string, because both arrive as an empty value. And the name in the message is always the action's input name, chosen by whoever wrote the action, and never the name of your secret or variable.

## Three names that are easy to conflate

A value passes through three naming schemes before the check sees it, and the message only ever mentions the middle one.

| Name | Who chooses it | Whether it appears in the message |
| --- | --- | --- |
| The secret or variable, such as `RELEASE_TOKEN` | You, in repository or organization settings | No |
| The action's input, such as `token` | The action author, in its `action.yml` | Yes, this is the word after the colon |
| The environment variable, such as `INPUT_TOKEN` | The runner, derived from the input name | No, but it is what is actually read |

&amp;gt; This is why the message is a poor search term for your own repository. Looking for a secret named `token` finds nothing, because the mapping happens in the step's `with:` block, where your name appears on the right of the colon and the action's name on the left.

## Why a default in the action does not always save you

Many actions declare a default for their token input, commonly `${{ github.token }}`, and the runner evaluates that before the step starts. With such a default, the input is only empty when you overrode it, which makes an explicit `with:` line the first thing to examine rather than the last.

That inverts the usual instinct. The step that has no `token:` line at all is generally the one that works, and the step that carefully passes a secret is the one that fails, because passing an empty secret replaces a working default with nothing. Deleting the line is a legitimate repair and is frequently the right one.

## Why there is no recorded run on this page

The check does not touch the network, the filesystem or the runner's state; it reads one environment variable and compares it to the empty string. Recording that would produce a single line identical to the one above, and it would tell you nothing about which of your names, scopes or events left the variable empty, which is the entire question. What can be established once and reused is the transformation from a secret name to an input name to a variable name, and that is fixed in the toolkit's source.

## FAQ

### I have no secret called token. Where is that name from?

From the action. `getInput` interpolates the input name it was asked for, and that name is declared in the action's `action.yml`. Your own name appears only on the right-hand side of the mapping in the step's `with:` block, and the check never sees it.

### Does the message mean the input was missing or empty?

It cannot tell the difference. The function reads an environment variable and substitutes an empty string when it is absent, then tests only whether the result is empty. A misspelled secret, an unshared one and a deliberately blank value all reach the same branch.

### Why do several steps fail with different messages at once?

Because one condition emptied all of them. A fork pull request, an uninherited reusable workflow or an unnamed environment removes every secret in the job together, and each step then reports the absence in its own words. Look for a shared cause before treating them separately.

### Is removing the token line really a fix?

When the action declares a default it is, and it is often the correct one. Supplying a secret that resolves to an empty string overwrites a default that would have worked. Check the action's `action.yml` for a default before adding a secret to solve this.

## References

- [actions/toolkit: packages/core/src/core.ts, the getInput required check](https://github.com/actions/toolkit/blob/main/packages/core/src/core.ts)
- [GitHub Actions: using secrets in a workflow](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets)
- [GitHub Actions: metadata syntax, declaring inputs and their defaults](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>docker/login-action Username and password required error</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:53:55 +0000</pubDate>
      <link>https://dev.to/kalemi/dockerlogin-action-username-and-password-required-error-1jli</link>
      <guid>https://dev.to/kalemi/dockerlogin-action-username-and-password-required-error-1jli</guid>
      <description>&lt;p&gt;The docker/login-action Username and password required error is thrown before any network call, by a three branch check that has two other messages available to it. It chose this one because both values were empty, which is a different problem from one misnamed secret.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqu28j6r9pt7uq90e77vm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqu28j6r9pt7uq90e77vm.png" alt="The three branch credential check in login-action and the message each branch throws" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Read in order from src/docker.ts. The first branch requires both values to be falsy, so "Username and password required" is the message that means neither arrived.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;The step fails in under a second, with no registry named and no connection attempted. Steps before it are green, and the build step after it is skipped. The wording almost never changes, which is why it is easy to miss that it is one of three possible sentences: the action also has &lt;code&gt;Username required&lt;/code&gt; and &lt;code&gt;Password required&lt;/code&gt;, and the one you got rules the other two out.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Actions log, the message loginStandard throws when both inputs are empty&lt;br&gt;
Run docker/login-action@v3&lt;br&gt;
Error: Username and password required&lt;/p&gt;
&lt;h2&gt;
  
  
  [error]Username and password required
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The job never had the secrets, so both interpolations became empty

The common shape, and the one the wording points at. A pull request from a fork gets no repository secrets, a job in a reusable workflow that was called without `secrets: inherit` gets none either, and both cases empty the whole `with:` block at once rather than one line of it.

### The with: block is misindented and its values are not inputs

YAML will accept a `username` key that sits one level too deep or beside `uses` instead of under `with`, and the action then receives nothing for either name. Both values are empty for the same reason, which is what distinguishes this from a spelling mistake.

### Secrets exist at a scope this repository cannot read

An organization secret that was never shared with this repository, or an environment secret in a job that does not name the environment, resolves to an empty string with no warning. When one set of credentials is stored together this way, both halves disappear together.

### The login step runs on an event that carries no secrets

Less common but persistent: a workflow that is correct on push and empty on `pull_request` from a fork. The step is unchanged between the two runs, which is why the file gets read repeatedly and looks fine each time.

## How to fix it

### Use the sentence to pick the search

1. If the message names both values, stop checking secret names and check whether this job receives secrets at all.
2. Open the job's event: a fork pull request and an uninherited reusable workflow both empty everything.
3. If the message names one value, the other arrived, and a single name or scope is wrong.

### Guard the step rather than letting it fail the job

When a job legitimately runs both with and without credentials, test the value through `env` rather than through the `secrets` context, which is not available in an `if` at either job or step level. Copy the secret into `env` first, then branch on that.



```.github/workflows/publish.yml (illustrative)
- name: Log in to the registry
        if: env.REGISTRY_USER != ''
        env:
          REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
        uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ secrets.REGISTRY_USER }}
          password: ${{ secrets.REGISTRY_TOKEN }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Name the registry explicitly
&lt;/h3&gt;

&lt;p&gt;Set &lt;code&gt;registry&lt;/code&gt; even when you think the default is right. It costs one line and it removes the most confusing symptom of the both-empty case, which is a failure that talks about Docker Hub in a workflow that has nothing to do with Docker Hub.&lt;/p&gt;
&lt;h3&gt;
  
  
  For ECR, expect a different failure entirely
&lt;/h3&gt;

&lt;p&gt;If the registry is ECR, or &lt;code&gt;ecr: true&lt;/code&gt; is set, the three sentences cannot be produced. An empty credential there surfaces through the AWS SDK instead. Do not spend time looking for this message in a job that takes that path.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to prevent it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Put the login step in a job that also declares which environment or which secrets it needs, so an empty value is a visible configuration change rather than a silent one.&lt;/li&gt;
&lt;li&gt;Prefer &lt;code&gt;${{ github.token }}&lt;/code&gt; and &lt;code&gt;packages: write&lt;/code&gt; over a stored credential when the registry is ghcr.io, since there is then nothing to leave unset.&lt;/li&gt;
&lt;li&gt;When a workflow must run on fork pull requests, guard the login step rather than letting it take the job red.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;registry&lt;/code&gt; on every login step, so the failure names the host you meant.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Three messages, and the one you got
&lt;/h2&gt;

&lt;p&gt;The check lives in &lt;code&gt;loginStandard&lt;/code&gt; in &lt;code&gt;src/docker.ts&lt;/code&gt; and runs before anything is sent anywhere. It is a ladder, and the order matters, because the first branch that matches wins and the later ones are never reached.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```docker/login-action src/docker.ts, loginStandard&lt;br&gt;
if (!username &amp;amp;&amp;amp; !password) {&lt;br&gt;
  throw new Error('Username and password required');&lt;br&gt;
}&lt;br&gt;
if (!username) {&lt;br&gt;
  throw new Error('Username required');&lt;br&gt;
}&lt;br&gt;
if (!password) {&lt;br&gt;
  throw new Error('Password required');&lt;br&gt;
}&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## What the wording rules out

Because the branches are exclusive, the sentence you were given is a measurement rather than a generic complaint. The table is the whole of it.

| Sentence thrown | Username value | Password value | Where to look first |
| --- | --- | --- | --- |
| `Username and password required` | Empty | Empty | The `with:` block itself: indentation, a step that lost its inputs, or a job that never had the secrets |
| `Username required` | Empty | Present | The username secret or variable alone |
| `Password required` | Present | Empty | The password secret alone, which is the misnamed-secret case |

&amp;gt; This is why the common advice to check the spelling of one secret so often changes nothing. A single misnamed password secret produces `Password required`, not the sentence on this page. Getting both empty usually means the values never reached the step at all, rather than that two names are wrong at once.

## The branch only runs for some registries

The ladder sits inside `loginStandard`, and `login` decides between that and `loginECR` before any of it happens. The ECR path is taken when the `ecr` input is `true`, or when it is `auto` and the registry host looks like ECR. On that path the three sentences are unreachable, and an empty credential produces an AWS SDK failure instead, naming a region or a profile.

The other thing `login` does first is worth knowing for the both-empty case: when the `registry` input is also empty, there is no registry to name, and the action logs in to Docker Hub by default. A job that meant to authenticate to a private registry, and whose whole `with:` block failed to resolve, therefore fails while talking about Docker Hub, which it was never configured to use.

## Why there is no recorded run on this page

The throw happens before a socket is opened, from two values that were empty in your repository's secret store rather than on any machine. A run of ours would have to deliberately leave our own secrets unset, and the log it produced would be the same single line, carrying no information about which of your names, scopes or triggers was responsible. The sentence above is the one this branch throws, read in the action's source, and the table is that source's own ordering rather than a reproduction.

## FAQ

### Why does it say Docker Hub when I am pushing to a private registry?

Because the `registry` input was empty too. The action defaults to Docker Hub when no registry is given, so a `with:` block that failed to resolve as a whole takes the default along with everything else. The mention of Docker Hub is a symptom of the same emptiness, not a separate misconfiguration.

### I only misnamed the password secret, so why does it name both?

It would not. A present username with an empty password reaches the third branch and throws `Password required`. If the message names both, both values were empty when the step started, which points at the block, the event or the secret scope rather than at one name.

### Can I check whether the secret exists before the login step?

Not through the `secrets` context in an `if`, because that context is not available in a job-level or step-level `if` condition. Assign the secret to `env` on the step or the job and test `env.NAME` instead. The value is still masked in the log; only its emptiness is observable.

### Does the message differ between login-action versions?

The three sentences and their order have been stable in `loginStandard` across the v2 and v3 majors. What has moved around them is the dispatch above: which registries are treated as ECR, and the addition of a Docker Hub OIDC path that replaces the username and password before the ladder sees them.

## References

- [docker/login-action: src/docker.ts, the loginStandard credential check](https://github.com/docker/login-action/blob/master/src/docker.ts)
- [docker/login-action: action.yml, the username and password inputs](https://github.com/docker/login-action/blob/master/action.yml)
- [GitHub Actions: contexts reference, where the secrets context may be used](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#context-availability)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Unable to get ACTIONS_ID_TOKEN_REQUEST_URL in GitHub Actions</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:51:53 +0000</pubDate>
      <link>https://dev.to/kalemi/unable-to-get-actionsidtokenrequesturl-in-github-actions-50ag</link>
      <guid>https://dev.to/kalemi/unable-to-get-actionsidtokenrequesturl-in-github-actions-50ag</guid>
      <description>&lt;p&gt;Unable to get ACTIONS_ID_TOKEN_REQUEST_URL is thrown by &lt;code&gt;@actions/core&lt;/code&gt; when an environment variable it expects is absent, before any request is made to GitHub or to a cloud provider. The runner never received the variable, so nothing on the machine can produce it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fltnlh019669mwv6hcop2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fltnlh019669mwv6hcop2.png" alt="Two OIDC environment variables and the order the toolkit reads them when minting a token" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;getIDToken reads the URL first, so the URL message is the one you see even though both variables are absent together. The catch block then prefixes it with "Error message: ".&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;A cloud login, an attestation step or any action that mints an OIDC token fails within a second of starting. No provider is contacted, so there is no cloud-side error to look at and no audit entry anywhere. The line in the log is rarely the bare sentence: it usually arrives with one or two prefixes bolted on by the code that asked for the token, and those prefixes are the most useful part.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Actions log, quoted from astropy/extension-helpers#156&lt;br&gt;
Error: Unhandled error: Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The job did not request id-token: write

The dominant cause. GitHub injects the two variables only for jobs that hold the `id-token` permission at write, so without it the environment is simply missing them. There is no warning at startup and no mention in the job summary beyond the permissions list itself.

### The permission was declared somewhere it does not reach the job

Written at the workflow level in a file where a job also has its own `permissions` block, the job block replaces the workflow one rather than merging with it, so the job silently loses `id-token`. This is the version where the file plainly contains the right line and the job still has nothing.

### A reusable workflow was called without the permission at the caller

The called workflow cannot grant itself more than the caller has. A job inside it that needs OIDC gets nothing unless the caller's job declared `id-token: write`, and the file that fails is not the file that has to change.

### An organization or enterprise policy caps what the token may hold

Worth ruling out when the workflow is provably correct. A restrictive default or an explicit policy can withhold the scope, and the symptom is identical to forgetting the line. The run's own permissions listing is where the request and the grant can be compared.

## How to fix it

### Declare the permission on the job that mints the token

Put it on the job rather than the workflow, so it applies where it is needed and nothing else gains it. GitHub notes that this setting "only enables fetching and setting the OIDC token; it does not grant write access to other resources", so it is not a broad grant.



```.github/workflows/deploy.yml (illustrative)
jobs:
  deploy:
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: read
    steps:
      - uses: actions/checkout@v5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Remember that a job block replaces the workflow block
&lt;/h3&gt;

&lt;p&gt;If the job has its own &lt;code&gt;permissions&lt;/code&gt;, every scope it needs has to be listed there, including &lt;code&gt;contents: read&lt;/code&gt; for checkout. Adding &lt;code&gt;id-token: write&lt;/code&gt; at the workflow level will not reach a job that overrides it.&lt;/p&gt;
&lt;h3&gt;
  
  
  Declare it at the caller for a reusable workflow
&lt;/h3&gt;

&lt;p&gt;GitHub is explicit about this for workflows outside your organization: set &lt;code&gt;id-token&lt;/code&gt; to write "explicitly at the caller workflow or job level", which "ensures the OIDC token is only available to intended caller workflows". Change the calling file, not the called one.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```.github/workflows/release.yml (illustrative)&lt;br&gt;
jobs:&lt;br&gt;
  call-deploy:&lt;br&gt;
    permissions:&lt;br&gt;
      id-token: write&lt;br&gt;
      contents: read&lt;br&gt;
    uses: ./.github/workflows/deploy.yml&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


### Confirm the grant rather than the request

Open the failing job and read the permissions it was actually given. If the workflow asks for `id-token: write` and the job did not receive it, no edit to the file will help and the next question is an organization policy.

## How to prevent it

- Keep `id-token: write` on the smallest job that needs it, so a refactor that splits jobs makes the loss visible.
- When a job declares any `permissions`, list every scope it needs rather than relying on a workflow-level block.
- Set the permission at the caller whenever a reusable workflow performs the login.
- Prefer OIDC over stored cloud credentials, since the failure mode here is a missing line rather than a leaked key.

## Where the sentence comes from, and what wraps it

The string is thrown in `OidcClient.getIDTokenUrl()` in `@actions/core`, in a two line branch: read `process.env.ACTIONS_ID_TOKEN_REQUEST_URL`, and if it is falsy, throw. That is the entire test. The variable is injected into the job environment by the Actions service, so its absence is decided before the runner starts your step.

The wrapper matters as much as the message. `getIDToken()` calls that function inside a `try`, and its `catch` rethrows with a fixed prefix: the new error's message is `Error message: ` followed by the original. So the bare sentence essentially never appears alone in a log. Whatever sits in front of it was added by the code that asked for the token, which makes the prefix a reliable way to identify the caller.

## Two variables, read in a fixed order

The OIDC handshake needs both an endpoint and a bearer token for that endpoint, and the toolkit reads them at different moments. When the permission is absent, neither is present, and yet only one message can be first.

| Variable | Which toolkit step reads it | When it is reached |
| --- | --- | --- |
| `ACTIONS_ID_TOKEN_REQUEST_URL` | `getIDTokenUrl()`, the first call inside `getIDToken()` | Always first, so this is the message you see |
| `ACTIONS_ID_TOKEN_REQUEST_TOKEN` | `getRequestToken()`, when the HTTP client is constructed | Only after a URL was found, so it is rare in practice |

&amp;gt; This is why searching for the token variable's message turns up so little. `Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable` exists in the same file and is thrown by the same kind of branch, but the URL is read first and the two variables appear and disappear together. Seeing the token message instead usually means something set the URL by hand.

## What the prefix tells you about the caller

Because `getIDToken()` always adds `Error message: `, anything in front of that came from your step. A line reading `Failed to get OIDC token: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable` was produced by an action that caught the toolkit error and added its own description. A line with a doubled `Error: Unhandled error: Error:` in front came from an action that let the rejection escape to its top-level handler.

Neither prefix changes the cause, and neither is worth debugging on its own. What they are good for is identifying which step asked, which is genuinely useful when several steps in a job could have been the one that wanted a token.

## Why there is no recorded run on this page

A recorded run here would be a video of an absence. The failing branch reads one environment variable, finds nothing, and throws, all before a socket is opened, so the log holds exactly one line and that line is already quoted above from a public issue. The part worth establishing is which of the two variables is read first and what the wrapper adds, and neither of those is observable from a log at all: they are facts about the toolkit, which we read in its source instead.

## FAQ

### Why does my log say "Error message:" twice over?

Because two layers added text. `getIDToken()` catches the original throw and rethrows with a fixed `Error message: ` prefix, and whatever called it usually adds a description of its own. The repetition is normal and carries no extra meaning beyond telling you which step asked for the token.

### Do I need id-token: write for a job that only reads?

You need it for any job that mints an OIDC token, whatever it does afterwards. The name is misleading: GitHub documents that the setting only enables fetching and setting the OIDC token and does not grant write access to other resources. A read-only deployment that authenticates over OIDC still requires it.

### Why is the other variable never the one that fails?

Because of the order. `getIDToken()` resolves the URL before it builds the HTTP client that reads the bearer token, so the URL branch is always reached first. The two variables are injected together and withheld together, which means the second branch is effectively unreachable in the ordinary case.

### Can a step set the variable itself as a workaround?

No, and there is nothing to set it to. The endpoint and its bearer token are issued by the Actions service for a job that was authorized to have them; they are not values the runner can compute. A job that could grant itself an OIDC token would defeat the point of the permission.

## References

- [actions/toolkit: packages/core/src/oidc-utils.ts, the branch that throws](https://github.com/actions/toolkit/blob/main/packages/core/src/oidc-utils.ts)
- [GitHub Actions: OIDC reference, the permission and the two environment variables](https://docs.github.com/en/actions/reference/security/oidc)
- [astropy/extension-helpers#156: the wrapped message in a real run](https://github.com/astropy/extension-helpers/issues/156)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>GitHub Actions id-token write permission not granted to the job</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:49:40 +0000</pubDate>
      <link>https://dev.to/kalemi/github-actions-id-token-write-permission-not-granted-to-the-job-1bi8</link>
      <guid>https://dev.to/kalemi/github-actions-id-token-write-permission-not-granted-to-the-job-1bi8</guid>
      <description>&lt;p&gt;A GitHub Actions id-token write permission not granted problem is almost never a missing line; it is a line in a place that does not reach the job that needs it. The failure text is the same in every case, so the workflow file rather than the log is what distinguishes them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbycolipgem4mmk7hkad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbycolipgem4mmk7hkad.png" alt="One id-token permission written at three levels and which jobs end up holding it" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;A job-level permissions block replaces the workflow-level one rather than merging with it, so a job that declares any scope must declare every scope it needs.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;An OIDC login fails and the workflow visibly contains &lt;code&gt;id-token: write&lt;/code&gt;. Adding it again somewhere else changes nothing, and the job summary lists a permission set that does not include it. The message is identical to the one you get from having no permission at all, which is why the file gets re-read several times before anyone checks what the job was actually granted.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Actions log, quoted from claudioorjunior/integra-escala#36&lt;br&gt;
Failed to get OIDC token: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable&lt;br&gt;
Error: Unexpected error&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The job has its own permissions block that omits id-token

The common case, and it usually arrives through a well-intentioned change. Someone tightens a job by giving it `contents: read`, which silently discards everything the workflow level was providing, including the OIDC permission that another part of the job depends on.

### The permission is inside a reusable workflow rather than at its caller

The called file is correct in isolation and cannot help itself. Every calling job has to declare the permission, so one shared workflow generates the same report from several repositories, none of which contains the fix.

### The login happens in a different job from the one holding the permission

Splitting build and deploy into two jobs moves the OIDC login without moving the block, especially when the permission was written at a job that no longer performs the login. Nothing warns, because both jobs are individually valid.

### An organization or enterprise policy withholds the scope

Rare but real, and the only case where the file is genuinely correct and unfixable locally. The job requests the permission and is granted less, which the run's permissions listing shows and the workflow file cannot.

## How to fix it

### Compare what was requested with what was granted

1. Open the failing job and read the permissions it was given, rather than the ones the file asks for.
2. If `id-token` is absent there but present in the file, find which block actually applied to this job.
3. If the job has its own `permissions` block, that block is the complete list and needs every scope the job uses.

### Put the whole list on the job that logs in

When a job declares any permissions, declare all of them. This is the placement that does not depend on anything above it.



```.github/workflows/deploy.yml (illustrative)
jobs:
  deploy:
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: read
    steps:
      - uses: actions/checkout@v5
      - uses: aws-actions/configure-aws-credentials@v5
        with:
          role-to-assume: arn:aws:iam::123456789012:role/deploy
          aws-region: eu-west-1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Declare it at the call site for a reusable workflow
&lt;/h3&gt;

&lt;p&gt;The calling job is the only place that can grant it. Write it there even when the called workflow also declares it, since the called file can only narrow what it was given.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```.github/workflows/release.yml (illustrative)&lt;br&gt;
jobs:&lt;br&gt;
  call-deploy:&lt;br&gt;
    permissions:&lt;br&gt;
      id-token: write&lt;br&gt;
      contents: read&lt;br&gt;
    uses: my-org/shared/.github/workflows/deploy.yml@v3&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


### Keep the login in the job that holds the permission

When jobs are split, move the block with the step that mints the token rather than leaving it where it was. Credentials obtained by OIDC do not cross between jobs anyway, so each job that authenticates needs its own permission.

## How to prevent it

- Treat a job-level `permissions` block as a complete list, and review it as one whenever a job gains a step.
- Document at the top of a reusable workflow which permissions the caller must grant.
- Put the permission on the job that performs the login, not on the workflow, so splitting jobs makes the loss obvious.
- Read the granted permissions in the run summary before editing the file a second time.

## The message is the same as its sibling, deliberately

This page and the one on the missing request URL describe the same failure text, because there is only one. The toolkit reads an environment variable, finds nothing, and throws; it cannot tell you why the variable was absent. That sibling page covers the mechanism, the wrapper prefixes and the two variables. This one is about the thing that is actually different between repositories, which is where the permission was written.

If you have already established that the job simply never asked for the permission, the repair is one line and belongs on the sibling. Come here when the line demonstrably exists and the job still does not have it.

## Where the block reaches and where it does not

Permissions are computed per job, and a job-level block is a replacement rather than an addition. That single rule explains most of these.

| How the file is written | What the job ends up holding |
| --- | --- |
| `id-token: write` at the workflow level only, job declares nothing | The workflow block, so the job holds it |
| `id-token: write` at the workflow level, job declares `contents: read` | Only `contents: read`, because the job block replaced the workflow one |
| `id-token: write` on the job itself | The job block, which is the reliable placement |
| `id-token: write` inside a called reusable workflow | At most what the caller's job held, so usually nothing |

&amp;gt; The second row is the one that produces the most confusion, because the workflow plainly contains the permission and a job plainly does not have it. Both statements are true at once. When a job declares any `permissions` block, that block is the complete list for that job, and anything the workflow level offered is discarded rather than merged.

## The caller decides for a reusable workflow

A called workflow cannot grant itself more than the caller had, so writing the permission inside the reusable file achieves nothing when the calling job did not hold it. GitHub is explicit for workflows outside your own organization: set the `permissions` setting for `id-token` to write "explicitly at the caller workflow or job level", which "ensures the OIDC token is only available to intended caller workflows".

The practical consequence is that the file you have to edit is not the file that failed. A team that owns a shared deployment workflow will keep receiving reports about it that can only be fixed in the repositories calling it, which is worth documenting next to the workflow.

## Why there is no recorded run on this page

What distinguishes this page from its sibling is not observable in a log at all: it is the shape of a workflow file, and every log for every placement is byte for byte the same. Recording a run would produce the same line the sibling already quotes, with nothing in it to indicate which of the four placements above was in effect. The evidence that does discriminate is the run's own permissions listing in your repository, and GitHub's published rule for callers, and neither is something a run of ours could stand in for.

## FAQ

### How is this different from the missing request URL page?

The failure text is the same, because there is only one message. That page explains the mechanism: which environment variable is read, in what order, and what the toolkit wraps around the throw. This page is for when the permission is visibly in the file and the job still does not hold it, which is a question about placement rather than about the message.

### Does a job-level permissions block merge with the workflow-level one?

No, it replaces it. A job that declares any permissions holds exactly what it declared, so adding `contents: read` to a job silently removes an `id-token: write` that the workflow level was supplying. This is the single most common reason the line is present and the job does not have it.

### Why does declaring it in the reusable workflow not work?

Because a called workflow cannot hold more than its caller. GitHub instructs you to set `id-token` to write explicitly at the caller workflow or job level, so that the OIDC token is only available to intended callers. The file that must change is the one doing the calling.

### The file looks right and the job still lacks the permission. What now?

Read the run's permissions listing and compare it with the request. If the job asked for the scope and was granted less, no edit to the workflow will change it and the next question is an organization or enterprise policy, which someone with those settings has to answer.

## References

- [GitHub Actions: OIDC reference, setting permissions and the caller rule](https://docs.github.com/en/actions/reference/security/oidc)
- [GitHub Actions: workflow syntax, how permissions are calculated for a job](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions)
- [claudioorjunior/integra-escala#36: the same message from a real run](https://github.com/claudioorjunior/integra-escala/issues/36)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>google-github-actions/auth workload identity audience errors</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:47:33 +0000</pubDate>
      <link>https://dev.to/kalemi/google-github-actionsauth-workload-identity-audience-errors-2m3o</link>
      <guid>https://dev.to/kalemi/google-github-actionsauth-workload-identity-audience-errors-2m3o</guid>
      <description>&lt;p&gt;A google-github-actions/auth workload identity audience failure is the first leg of the login being refused, inside the step itself, when Google's token service declines to exchange your GitHub token. The action reports the operation it was performing, which is what separates this from everything that happens afterwards.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2mophgm9c0i1y08z8kwi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2mophgm9c0i1y08z8kwi.png" alt="Two different audience values in one Google Cloud login, and where each of them is set" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The audience input sets only the claim requested from GitHub. The value sent to Google is built separately in the client as two slashes, the IAM host and the provider name.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;The auth step is red and nothing after it ran. The message begins with the action naming itself, then describes a failure to generate a federated token, then lists key and value pairs: the operation, an endpoint class, a status, an error class and an attempt counter. There is no Google service account in it and no IAM role, because the request never got as far as one.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Shape assembled from the throw in src/client/workload_identity_federation.ts&lt;br&gt;
Error: google-github-actions/auth failed with: Failed to generate Google Cloud federated token: operation=token_exchange, endpoint_class=sts.googleapis.com, status=400, error_class=invalid_request, attempt=3/3&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The provider resource name uses the project ID instead of the project number

The most common configuration error, and it fails at this leg because the named provider does not resolve. The path is projects, then the number, then locations, then the pool and the provider. A path that reads correctly to a human and uses the ID is wrong.

### The provider's attribute condition rejects this repository

A condition restricting the provider to particular repositories or owners is doing its job when it refuses, and the refusal looks identical to a misconfiguration. A condition that references an attribute the mapping never defines fails for a different reason and is worth checking at the same time.

### The audience input was set and did not need to be

Overriding the audience changes the claim GitHub puts in the token while leaving the value sent to Google derived from the provider. Unless the provider was configured to expect that exact custom audience, the two no longer agree. Removing the input is often the repair.

### The job never obtained an OIDC token to exchange

Worth ruling out first, because it produces a different message. Without `id-token: write` the action fails before the exchange, complaining about the request URL rather than about a federated token. If the message names the token exchange, a GitHub token was obtained and the permission is not the issue.

## How to fix it

### Confirm which leg failed before touching IAM

1. If the message contains `operation=token_exchange`, the failure is the first leg and no service account was involved.
2. If it names an impersonated credential instead, the exchange succeeded and the problem is downstream.
3. If it mentions the OIDC request URL, no GitHub token was minted and the job permission is the issue.

### Rebuild the provider path from the project number

Take the number from the project, not the identifier, and construct the full resource path. This single value is the most frequent cause and the easiest to verify.



```.github/workflows/deploy.yml (illustrative)
- uses: google-github-actions/auth@v2
        with:
          workload_identity_provider: projects/123456789012/locations/global/workloadIdentityPools/github/providers/my-repo
          service_account: deployer@my-project.iam.gserviceaccount.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Remove the audience input unless the provider expects a custom one
&lt;/h3&gt;

&lt;p&gt;The default is derived from the provider you already named, so leaving the input unset keeps the two values consistent by construction. Set it only when the provider was deliberately configured with a non-default allowed audience, and then set both sides together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Read the attribute condition against a real token's claims
&lt;/h3&gt;

&lt;p&gt;The condition is evaluated against the claims in the GitHub token, so it can only reference attributes the mapping defines. Check that every attribute the condition uses is mapped, and that the values it compares against match the repository actually running the workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to prevent it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Store the provider resource path as a single configuration value, so the project number cannot drift back to an identifier.&lt;/li&gt;
&lt;li&gt;Leave the audience unset unless the provider requires a custom one, and change both together when it does.&lt;/li&gt;
&lt;li&gt;Keep the attribute mapping and the attribute condition in one place, since the condition can only reference what the mapping defines.&lt;/li&gt;
&lt;li&gt;Grant &lt;code&gt;id-token: write&lt;/code&gt; on the job, so a permission problem never masquerades as an exchange problem.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  There are two audiences and they are not the same string
&lt;/h2&gt;

&lt;p&gt;This is the detail that makes the error hard to reason about. The action computes one audience in &lt;code&gt;main.ts&lt;/code&gt; for the token it requests from GitHub: the &lt;code&gt;audience&lt;/code&gt; input if you set one, otherwise &lt;code&gt;https://iam.googleapis.com/&lt;/code&gt; followed by your provider resource name. It computes a second one inside the federation client for the exchange request body, as two slashes, then the IAM host, then the provider resource name.&lt;/p&gt;

&lt;p&gt;So the &lt;code&gt;audience&lt;/code&gt; input changes only the claim inside the GitHub token. The value Google is asked to validate against is derived from &lt;code&gt;workload_identity_provider&lt;/code&gt; regardless. Setting the input to something Google does not expect, or setting it at all when it was not needed, is a common way to break a configuration that was working, and it is invisible unless you know the two values are computed in different places.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the key and value pairs
&lt;/h2&gt;

&lt;p&gt;The action serializes the failure rather than narrating it, which is more useful than it looks once you know what each field is.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field in the message&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;operation=token_exchange&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The first leg. Impersonation has not been attempted and is not implicated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;endpoint_class&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Which Google host answered, confirming the request left the runner&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The HTTP status from the token service, or &lt;code&gt;none&lt;/code&gt; when nothing answered&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;error_class&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The classification the action assigned, which decides whether it retried&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;attempt=n/m&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;How many times it tried; a full count means the failure was judged permanent or persistent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;A &lt;code&gt;status&lt;/code&gt; of &lt;code&gt;none&lt;/code&gt; is worth separating from a numeric one. It means no HTTP response was classified at all, so the problem is reaching the token service rather than anything about your provider, and none of the configuration on this page is relevant. A numeric status means Google answered and declined.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What the token service is actually checking
&lt;/h2&gt;

&lt;p&gt;The exchange asks Google to accept a JWT issued by GitHub as proof of identity. Google validates it against the workload identity provider named in the request: that the issuer is GitHub, that the audience matches what the provider expects, and that the provider's attribute condition is satisfied by the claims in the token. Any of those failing produces a refusal at this stage, before any service account is considered.&lt;/p&gt;

&lt;p&gt;The provider resource name is where most configurations go wrong, because it must use the project number rather than the project ID. The two look interchangeable in a console and are not, and a provider path built with the ID names a resource that does not exist, which fails here rather than anywhere more informative.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why there is no recorded run on this page
&lt;/h2&gt;

&lt;p&gt;The exchange is a conversation between GitHub's OIDC provider and a Google project's token service about a provider resource we would have to create. Our pool, our attribute mapping and our attribute condition would decide the outcome, and the fields in the message that matter, the status and the error class, are answers about our configuration rather than yours. What is stable and worth reading once is where each of the two audience values is computed, and that is in the action's source, which we read instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does the audience input control what Google validates?
&lt;/h3&gt;

&lt;p&gt;Only indirectly. It sets the audience requested from GitHub for the token itself. The audience field in the exchange request is built separately inside the action's federation client from the IAM host and the provider resource name. Changing the input alone can therefore make the two disagree.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does status=none mean?
&lt;/h3&gt;

&lt;p&gt;That no HTTP response was classified, so Google's token service did not answer in a way the action could read. That points at reaching the endpoint rather than at your provider configuration, and none of the audience or attribute settings are implicated. A numeric status means the service answered and declined.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does the project number matter so much?
&lt;/h3&gt;

&lt;p&gt;Because the provider resource path is addressed by number, and a path built with the project ID names something that does not exist. The failure surfaces at the exchange rather than anywhere that mentions projects, which is why the value is worth checking before any IAM binding.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I tell this apart from an impersonation failure?
&lt;/h3&gt;

&lt;p&gt;By which step is red and by the wording. This failure happens inside the auth step and names the token exchange operation. An impersonation failure happens after the auth step has succeeded, is raised by a Google client library rather than by the action, and carries a Google response body describing a service account.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/google-github-actions/auth/blob/main/src/client/workload_identity_federation.ts" rel="noopener noreferrer"&gt;google-github-actions/auth: src/client/workload_identity_federation.ts, the exchange and its throw&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/google-github-actions/auth/blob/main/src/main.ts" rel="noopener noreferrer"&gt;google-github-actions/auth: src/main.ts, where the requested audience is computed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cloud.google.com/iam/docs/workload-identity-federation-with-deployment-pipelines" rel="noopener noreferrer"&gt;Google Cloud: workload identity federation with deployment pipelines&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>GitHub Actions secrets empty in fork pull requests explained</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:45:34 +0000</pubDate>
      <link>https://dev.to/kalemi/github-actions-secrets-empty-in-fork-pull-requests-explained-gh4</link>
      <guid>https://dev.to/kalemi/github-actions-secrets-empty-in-fork-pull-requests-explained-gh4</guid>
      <description>&lt;p&gt;GitHub Actions secrets empty in fork pull requests is a deliberate rule rather than a failure, and it produces no message at the moment it applies. Every reference simply becomes an empty string, and the first thing to complain is whichever tool was handed one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftext7s62bs3u17x0jbwe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftext7s62bs3u17x0jbwe.png" alt="One secret reference resolving normally on a push and to an empty string on a fork run" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;GitHub documents the rule in one sentence: "With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository."&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;A workflow is green on every push and red on every pull request opened from a fork, with no change to the file in between. The failing step is different from repository to repository, because the error belongs to the program that received the empty value rather than to Actions. Several steps often fail at once for the same reason, and the log never explains why the value was empty, because nothing observed it being emptied.&lt;/p&gt;
&lt;h2&gt;
  
  
  Common causes
&lt;/h2&gt;
&lt;h3&gt;
  
  
  The workflow runs on pull_request and the head repository is a fork
&lt;/h3&gt;

&lt;p&gt;The rule in its plain form. Every repository, organization and environment secret is withheld, all at once, for the whole run. Nothing in the file needs to be wrong and usually nothing is.&lt;/p&gt;
&lt;h3&gt;
  
  
  A step needs a credential that the build genuinely does not
&lt;/h3&gt;

&lt;p&gt;Coverage upload, a preview deployment, a container push or a comment posted through a third-party service. These are the steps that fail, and in most repositories none of them is part of validating the contributor's change.&lt;/p&gt;
&lt;h3&gt;
  
  
  The workflow was switched to pull_request_target without understanding it
&lt;/h3&gt;

&lt;p&gt;This restores secrets by running the workflow file from the base branch, and it is dangerous precisely when it is useful, because checking out the fork's code and running it hands that code the secrets. Recent policy has also begun blocking this trigger by default on public repositories.&lt;/p&gt;
&lt;h3&gt;
  
  
  A guard on the secret was added and the run stopped starting
&lt;/h3&gt;

&lt;p&gt;Worth listing because it is a common second failure. The guard was written as an &lt;code&gt;if&lt;/code&gt; on the &lt;code&gt;secrets&lt;/code&gt; context, which is not accepted there, so the run is now rejected at parse time and no job is created at all.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to fix it
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Separate the work that needs credentials from the work that does not
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Decide which steps exist to validate the contributor's change; those should run on fork pull requests.&lt;/li&gt;
&lt;li&gt;Move the steps that need a secret into a job or a workflow that fork pull requests do not reach.&lt;/li&gt;
&lt;li&gt;Leave the contributor with a green check that means something rather than a red one they cannot act on.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Guard through env, not through secrets
&lt;/h3&gt;

&lt;p&gt;When one workflow must serve both cases, assign the secret to an environment variable where the context is accepted, then branch on the variable. The value stays masked and the run parses.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```.github/workflows/ci.yml (illustrative)&lt;br&gt;
jobs:&lt;br&gt;
  test:&lt;br&gt;
    runs-on: ubuntu-latest&lt;br&gt;
    env:&lt;br&gt;
      CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}&lt;br&gt;
    steps:&lt;br&gt;
      - uses: actions/checkout@v5&lt;br&gt;
      - run: npm test&lt;br&gt;
      - name: Upload coverage&lt;br&gt;
        if: env.CODECOV_TOKEN != ''&lt;br&gt;
        run: ./scripts/upload-coverage.sh&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


### Use a second workflow for the privileged half

Let the pull request run build and test with no secrets and upload an artifact, then have a separate workflow triggered by that run do the privileged work. The second workflow runs from the base branch with access to secrets, and the artifact it consumes should be treated as untrusted data because a fork produced it.

### Treat pull_request_target as a last resort

It restores secrets by running the base branch's workflow file, so it is only safe while the fork's code is never executed. Never check the pull request head into the working directory and then build it. On public repositories, check whether a policy now blocks the trigger before relying on it.

## How to prevent it

- Design the pull request workflow to need no secrets, so a fork contribution is a first-class case rather than an exception.
- Write every secret test against `env`, so the habit never produces a parse error.
- Keep privileged steps in a workflow whose trigger a fork cannot reach.
- Tell contributors in the repository what a failing credentialed check means, since they cannot fix it.

## There is no error, which is why this is hard to find

An expression referring to a secret that is unavailable does not fail. It evaluates to an empty string, the step starts normally, and the job carries on until something objects. That is the whole mechanism, and it is why searching the log for the secret's name returns nothing: the name was replaced before anything was written down, and the value would have been masked even if it had been present.

The rule itself is short and GitHub states it plainly: "With the exception of `GITHUB_TOKEN`, secrets are not passed to the runner when a workflow is triggered from a forked repository." The exception matters. `GITHUB_TOKEN` is still there, in read-only form, which is why some steps in the same job keep working and the failure looks selective.

## The guard that looks obvious does not parse

The natural response is to skip the step when the secret is missing, and the natural place to put that is an `if`. It does not work, and it does not fail at runtime either: the run is rejected before any job starts, with a message about an unrecognized name. The `secrets` context is not among the names accepted in an `if` at either level.

| Where you want to test the secret | Accepted there | What to write instead |
| --- | --- | --- |
| `jobs.&amp;lt;job_id&amp;gt;.if` | No | Set it in the job's `env`, then test `env.NAME` |
| `jobs.&amp;lt;job_id&amp;gt;.steps.if` | No | Set it in the job's or step's `env`, then test `env.NAME` |
| `jobs.&amp;lt;job_id&amp;gt;.steps.env` | Yes | Assign it here, which is what makes the test above possible |
| `jobs.&amp;lt;job_id&amp;gt;.steps.with` | Yes | Pass it to an action here as normal |

&amp;gt; The failure this produces is a parse error about an unrecognized named-value, which is the same message a composite action gets for referencing secrets in its own file. If you reached this page from that error rather than from an empty value, the parse error is the thing to fix first and the emptiness is what you were trying to handle.

## What the rule protects, and what it costs

A pull request from a fork runs code that someone outside the repository wrote. If secrets were available to it, a one-line change to a build script would print them, and no review process catches that reliably. Withholding them is the only measure that does not depend on a human noticing.

The cost lands on honest contributors, who see a red check they cannot fix and often cannot diagnose. That is worth designing around rather than working around: a job that builds and tests without credentials gives a contributor a useful signal, and the steps that need a secret belong somewhere a fork cannot reach.

## Why there is no recorded run on this page

Producing this would require a second account to open a pull request from a fork against a repository of ours, which is a person rather than a runner, and what the resulting log would show is the absence of a value. There would be nothing in it to quote: no annotation, no warning, and a masked variable that is indistinguishable from an unset one. The rule is published as a single sentence, the context availability is published as a table, and both are better evidence than a log of nothing happening.

## FAQ

### Why is there no warning that the secret was unavailable?

Because nothing checks. An expression referencing an unavailable secret evaluates to an empty string, which is a valid value, so the step starts and the job continues. The first complaint comes from whatever program received the empty string, and that program has no idea a secret was involved.

### Why do some steps still work on a fork pull request?

Because `GITHUB_TOKEN` is the documented exception and is still provided, in read-only form. Steps that authenticate with it keep working for reads, while steps that need one of your own secrets do not. That mixture is what makes the failure look selective rather than systematic.

### Can I check whether a secret is set before using it?

Only indirectly. The `secrets` context is not available in an `if` at job or step level, so testing it there rejects the whole run at parse time. Assign the secret to `env` first, where the context is accepted, and test the environment variable in the condition.

### Are environment secrets available on a fork pull request?

No. The rule covers secrets generally, not just repository-level ones, so organization and environment secrets are withheld in the same way. Naming an environment on the job does not recover them, and if that environment has required reviewers the job will wait rather than run.

## References

- [GitHub Actions: using secrets, and the exception for forked repositories](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets)
- [GitHub Actions: contexts reference, which keys accept the secrets context](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#context-availability)
- [GitHub Actions: securely using pull_request_target](https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
    <item>
      <title>GitHub Actions composite action cannot access secrets directly</title>
      <dc:creator>Kaveh Alemi</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:43:27 +0000</pubDate>
      <link>https://dev.to/kalemi/github-actions-composite-action-cannot-access-secrets-directly-4ho</link>
      <guid>https://dev.to/kalemi/github-actions-composite-action-cannot-access-secrets-directly-4ho</guid>
      <description>&lt;p&gt;A GitHub Actions composite action cannot access secrets because the &lt;code&gt;secrets&lt;/code&gt; context is not one of the names the expression parser recognizes inside an &lt;code&gt;action.yml&lt;/code&gt;. The failure is a parse error rather than an empty value, so nothing runs at all.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figizqma9vnshhzlhr3bp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figizqma9vnshhzlhr3bp.png" alt="The names a composite action file may use, beside the one its parser rejects outright" width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The runner builds the message in ParseException as the description, the raw token in quotes, then the position and expression when a token is available.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What this error means
&lt;/h2&gt;

&lt;p&gt;The run fails immediately with an annotation naming a file, a line and a column, and no job appears in the run at all. The file named is the action's &lt;code&gt;action.yml&lt;/code&gt;, which may live in another repository entirely, so the first place you look is the workflow that called it and the workflow is fine. The message quotes the offending name in single quotes and, when the parser has a token to point at, appends the position and the whole expression.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```Actions log, quoted from BrunoSobrino/TheMystic-Bot-MD#384&lt;br&gt;
[error] thomasbnt/hello-to-news-contributions/v1.0/action.yml (Line: 14, Col: 23): Unrecognized named-value: 'secrets'&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## Common causes

### The action.yml references secrets directly

The literal case. A composite step uses `${{ secrets.NPM_TOKEN }}` in a `run`, an `env` or a `with`, having been written by copying a workflow step into an action. The name is valid in the file it came from and not in the file it landed in.

### A step-level or job-level if tests a secret

The same message from a plain workflow. Guarding work on whether a secret is set is a reasonable thing to want, and `if` is the obvious place to put it, but `secrets` is not available in either `if`. This is the version that appears in repositories with no composite actions at all.

### A secret is referenced in a key that does not accept it

Less common and harder to spot, because the same file uses `secrets` successfully a few lines away. Keys like `runs-on`, `strategy` and a job's `environment` do not accept the context, so one expression fails while its neighbors are fine.

### The action was refactored from a reusable workflow

Reusable workflows do accept a `secrets` block, so moving one to a composite action moves code that was correct into a file where it is not. The diff looks like a simple relocation, which is why the error arrives as a surprise.

## How to fix it

### Declare the secret as an input on the action

Add an input to the action and read it through the `inputs` context. Composite actions do not receive `INPUT_` environment variables automatically, so use the context rather than the variable.



```action.yml (illustrative)
name: publish
inputs:
  npm-token:
    description: 'Token used to publish'
    required: true
runs:
  using: composite
  steps:
    - shell: bash
      env:
        NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
      run: npm publish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Pass it explicitly at the call site
&lt;/h3&gt;

&lt;p&gt;The caller is the only place that can read the secret, so it hands it over as an ordinary input. The value remains masked in logs.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```.github/workflows/release.yml (illustrative)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;uses: ./.github/actions/publish
    with:
      npm-token: ${{ secrets.NPM_TOKEN }}
```
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  For an if condition, go through env
&lt;/h3&gt;

&lt;p&gt;Assign the secret to an environment variable at the job or step level, where the context is accepted, and test the variable in the condition. This is the supported shape for branching on whether a secret is configured.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```.github/workflows/release.yml (illustrative)&lt;br&gt;
jobs:&lt;br&gt;
  publish:&lt;br&gt;
    runs-on: ubuntu-latest&lt;br&gt;
    env:&lt;br&gt;
      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}&lt;br&gt;
    steps:&lt;br&gt;
      - if: env.NPM_TOKEN != ''&lt;br&gt;
        run: npm publish&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


### Consider a reusable workflow when there are many secrets

A reusable workflow accepts a `secrets` block and supports `secrets: inherit`, so it is the better shape when a unit of work genuinely needs several secrets. A composite action is the better shape when it needs one or two and should be usable from other repositories.

## How to prevent it

- Treat an action's inputs as its whole interface, and write every credential it needs into that list.
- When moving steps out of a workflow into an action, rewrite every `secrets.` reference in the same commit.
- Guard on `env` rather than on `secrets`, everywhere, so the habit never produces this failure.
- Read the context availability table before putting an expression in an unfamiliar key.

## The message is built by the expression parser

This is not the action complaining and it is not a permission check. `ParseException` in the runner assembles the text from a fixed description for the kind of failure, the raw token that failed, and where it sat. The `UnrecognizedNamedValue` kind maps to the description `Unrecognized named-value`, and the message becomes that description, a colon, the token in single quotes, and then, when a token object is available, `. Located at position ` with a one-based index `within expression: ` and the whole expression.

So the parser was reading an expression, reached the name `secrets`, and had no such name in the set it was given for that file. It is the same failure you would get from a misspelled context. Nothing was evaluated, nothing was empty, and no job was scheduled.

## Where secrets resolves and where it does not

Availability is per key, not per file, and GitHub publishes the list. These are the four places people most often try, and only two of them work.

| Key the expression sits in | Is `secrets` an accepted name | What to use instead |
| --- | --- | --- |
| An `action.yml` of a composite action | No, at any key | An input declared on the action and passed by the caller |
| `jobs.&amp;lt;job_id&amp;gt;.if` in a workflow | No | Copy the secret into `env` on the job and test `env.NAME` |
| `jobs.&amp;lt;job_id&amp;gt;.steps.if` in a workflow | No | Copy the secret into `env` on the step and test `env.NAME` |
| `jobs.&amp;lt;job_id&amp;gt;.steps.with` and `steps.env` | Yes | Nothing, this is where a secret is passed in |

&amp;gt; The middle two rows catch people who never wrote a composite action. The workaround that suggests itself for a missing secret, guarding the step with `if: secrets.NAME != ''`, produces this same message from a plain workflow file. Assigning the secret to `env` first and testing that is the documented way around it, and the value stays masked in the log either way.

## Why the restriction exists and what replaces it

GitHub states the rule and the reason together: "The `secrets` context is not available for composite actions due to security reasons. If you want to pass a secret to a composite action, you need to do it explicitly as an input." A composite action is code that runs inside your job, frequently from another repository at a tag that can move, and giving it ambient access to every secret in the run would make reviewing what it can reach impossible.

Passing secrets as inputs is therefore the feature rather than the workaround. It also has a property worth wanting: the call site lists exactly which secrets the action receives, so a reader of the workflow can see the blast radius without opening the action.

## Why there is no recorded run on this page

There is nothing to record, in the strongest sense on this page: the expression fails to parse, so the run is rejected before any job is created, no runner is assigned, and no step ever exists. The whole of the evidence is the annotation and the grammar that produced it, and we read that grammar in the runner's own `ParseException` rather than inferring it from examples. The annotation above is quoted from a public pull request where the failing file belonged to a third-party action.

## FAQ

### Why is this a parse error rather than an empty value?

Because the name is not defined in that file at all. The runner validates expressions against the set of names allowed in the key being read, and an unknown name is rejected during parsing. There is no evaluation, so there is no empty string to observe, and no job is created to observe it in.

### Can I use secrets anywhere in an action.yml?

No. The `secrets` context is not available in a composite action at any key, which GitHub states with its reason: it is withheld for security, and a secret should be passed explicitly as an input. Inputs are the supported channel and they also document at the call site which secrets the action can see.

### Why does my workflow get this error with no composite action involved?

Because `secrets` is also unavailable in `if` conditions, at both job and step level. Writing `if: secrets.NAME != ''` produces the same message from an ordinary workflow file. Assign the secret to `env` first and test `env.NAME` in the condition instead.

### What does the position in the message refer to?

It is a one-based index into the expression that failed, followed by that expression in full. The runner adds both only when it has a token to point at, which is why some annotations carry just the name in quotes. The line and column before it locate the expression in the file.

## References

- [GitHub Actions: contexts reference, the secrets context and composite actions](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#secrets-context)
- [GitHub Actions: contexts reference, which contexts each key accepts](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#context-availability)
- [actions/runner: ParseException.cs, where the message text is assembled](https://github.com/actions/runner/blob/main/src/Sdk/DTExpressions2/Expressions2/ParseException.cs)
- [GitHub Actions: metadata syntax for composite actions](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cicd</category>
      <category>debugging</category>
    </item>
  </channel>
</rss>
