Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: When using octokit (version: 3.1.2) and using createWorkflowDispatch it creates 2 identic workflows. #2812

Closed
1 task done
sebasnallar opened this issue Feb 13, 2025 · 1 comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@sebasnallar
Copy link

sebasnallar commented Feb 13, 2025

What happened?

const response = await installation.rest.actions.createWorkflowDispatch( camelCaseToSnakeCase({ owner: config.x, repo: config.y, workflowId: config.id, ref: config.r, inputs: { context: JSON.stringify({}) }, }) );
I'm trying to understand whether or not this could be an issue in the workflow dispatch method.

Versions

Octokit v3.1.2 Node 18

Relevant log output

{
    "status": 204,
    "url": "https://api.github.com/my-company/actions/workflows/myworkflow.yml/dispatches",
    "headers": {
        "access-control-allow-origin": "*",
        "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
        "content-security-policy": "default-src 'none'",
        "date": "Wed, 12 Feb 2025 16:21:29 GMT",
        "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
        "server": "github.com",
        "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
        "vary": "Accept-Encoding, Accept, X-Requested-With",
        "x-accepted-github-permissions": "actions=write",
        "x-content-type-options": "nosniff",
        "x-frame-options": "deny",
        "x-github-api-version-selected": "2022-11-28",
        "x-github-media-type": "github.v3; format=json",
        "x-github-request-id": "2BF4:15EC5E:222320E:4496EC3:67ACCA88",
        "x-ratelimit-limit": "15000",
        "x-ratelimit-remaining": "14995",
        "x-ratelimit-reset": "1739379651",
        "x-ratelimit-resource": "core",
        "x-ratelimit-used": "5",
        "x-xss-protection": "0"
    }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sebasnallar sebasnallar added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Feb 13, 2025
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

1 participant