GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cannot set proxy for a workflow · Issue #99 · actions/create-github-app-token

cannot set proxy for a workflow #99

New issue
Copy link
New issue
Copy link
Closed
#102
Closed
cannot set proxy for a workflow#99
#102
Copy link

Description

@dmitrijrub
dmitrijrub
opened on Jan 29, 2024
Issue body actions

Hi, it seems that this action does not respect the env proxy settings and you cannot set https_proxy for this workflow.
Its prevents running on selfhosted runners
Warning: Unexpected input(s) 'https_proxy', valid inputs are ['app-id', 'app_id', 'private-key', 'private_key', 'owner', 'repositories', 'skip-token-revoke', 'skip_token_revoke', 'github-api-url']

Activity

  1. gr2m commented on Jan 29, 2024

    @gr2m
    gr2m
    on Jan 29, 2024
    Contributor
    More actions

    I haven't implemented a proxy input for actions myself yet, can you point to actions that have done it for reference? Can you tell if there is a certain conventions that is recommended?

    Our action is built on the JavaScript Octokit, proxies are supported like this for Node usage:
    https://github.com/octokit/octokit.js?tab=readme-ov-file#proxy-servers-nodejs-only

    Pull request welcome by the way 👋🏼

  2. dmitrijrub commented on Jan 30, 2024

    @dmitrijrub
    dmitrijrub
    on Jan 30, 2024
    Author
    More actions

    I ended up using peter-murray/workflow-application-token-action action with https_proxy:

    Reacted by Gregor Martynus
  3. mikakesan commented on Jan 31, 2024

    @mikakesan
    mikakesan
    on Jan 31, 2024
    More actions

    @gr2m It would be great if you could look at look at adding proxy support, any plans for that? The other action mentioned here looks like a good one to look at.

  4. gr2m commented on Jan 31, 2024

    @gr2m
    gr2m
    on Jan 31, 2024
    Contributor
    More actions

    I'm working on this action as time permits, and time is very limited right now. I can always review a pull request if you need it fast 😅

    Reacted by Dmitrij Rubcov
  5. parkerbxyz commented on Feb 1, 2024

    @parkerbxyz
    parkerbxyz
    on Feb 1, 2024
    Contributor
    More actions

    Preliminary proxy support has been added in #102 (branch 99-proxy). Could somebody please test the action using actions/create-github-app-token@99-proxy on a self hosted runner to verify that it is working as intended? No need to add a new input. The action will get the proxy URL from the environment variables described here.

    Reacted by mikakesan
  6. parkerbxyz
    linked a pull request that will close this issuefeat: add proxy support #102on Feb 1, 2024
  7. mikakesan commented on Feb 2, 2024

    @mikakesan
    mikakesan
    on Feb 2, 2024
    More actions

    @parkerbxyz Thanks for that! I have tested your branch and it works fine here.

    Reacted by Gregor Martynus and Parker Brown
  8. parkerbxyz
    closed this as completedin #102on Feb 8, 2024
  9. dmitrijrub commented on Feb 9, 2024

    @dmitrijrub
    dmitrijrub
    on Feb 9, 2024
    Author
    More actions

    I have gave it a try and token generation works! But it gives warning, it would be nice to add https_proxy to expected values and put it in readme.md
    Unexpected input(s) 'https_proxy', valid inputs are ['app-id', 'app_id', 'private-key', 'private_key', 'owner', 'repositories', 'skip-token-revoke', 'skip_token_revoke', 'github-api-url']

  10. parkerbxyz commented on Feb 9, 2024

    @parkerbxyz
    parkerbxyz
    on Feb 9, 2024
    Contributor
    More actions

    I have gave it a try and token generation works! But it gives warning, it would be nice to add https_proxy to expected values and put it in readme.md Unexpected input(s) 'https_proxy', valid inputs are ['app-id', 'app_id', 'private-key', 'private_key', 'owner', 'repositories', 'skip-token-revoke', 'skip_token_revoke', 'github-api-url']

    We do not support any proxy-related inputs, which is why you are receiving this warning. If you remove the line with https_proxy from your workflow file and try again, it should work without any additional configuration.

     - uses: actions/create-github-app-token@v1
       id: app-token
       with:
         app-id: ${{ vars.APP_ID }}
         private-key: ${{ secrets.PRIVATE_KEY }}
    -    https_proxy: ${{ vars.HTTPS_PROXY }}

    We automatically detect and handle proxy configurations using the environment variables described here.

    Reacted by Gregor Martynus and Dmitrij Rubcov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.