Skip to content

fix(ci): workflow id in permission rate limit#13035

Merged
hnyls2002 merged 3 commits intosgl-project:mainfrom
cicirori:fix/ci_permission_rate_limit
Nov 11, 2025
Merged

fix(ci): workflow id in permission rate limit#13035
hnyls2002 merged 3 commits intosgl-project:mainfrom
cicirori:fix/ci_permission_rate_limit

Conversation

@cicirori
Copy link
Copy Markdown
Collaborator

@cicirori cicirori commented Nov 11, 2025

I couldn’t find a good way to get the workflow ID. ChatGPT suggested doing a query like this:

const workflows = await github.rest.actions.listRepoWorkflows({ owner, repo });
const current = workflows.data.workflows.find(w => w.name === context.workflow);
core.info(`Current workflow ID: ${current?.id}`);

Compared to this approach, I think directly using the file name is more reasonable.

This also seems the approach adopted by most repositories.

https://github.com/search?q=listWorkflowRuns+workflow_id%3A+path%3A.github+language%3AYAML&type=code

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@cicirori cicirori changed the title fix workflow id in permission rate limit fix(ci): workflow id in permission rate limit Nov 11, 2025
@hnyls2002 hnyls2002 merged commit 08c805a into sgl-project:main Nov 11, 2025
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants