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

token in a file #84

Closed
LuigiaCristiano opened this issue Feb 2, 2023 · 1 comment
Closed

token in a file #84

LuigiaCristiano opened this issue Feb 2, 2023 · 1 comment
Assignees
Labels
question Question about the project

Comments

@LuigiaCristiano
Copy link

Hi,
would it possible to give as input for the token, a file containing the token string and not directly the token ?
e.g -t tokenfilename
instead of -t token

Thanks
Luigia

@LuigiaCristiano LuigiaCristiano added the question Question about the project label Feb 2, 2023
@cdboer
Copy link
Collaborator

cdboer commented Feb 2, 2023

Currently your only options are to paste the token directly to the --token/-t option or to use a configuration file using the --config option in which you can store the token.

A config file called config.yaml could look like this:

- extract:
      token: "YOUR_TOKEN_HERE"
      url: ["PROJECT_URL_HERE"]

To run gitlab2prov using your configuration file issue the following command line invocation:

gitlab2prov --config config.yaml

If you want to validate your configuration file before executing the tool, i.e. check for errors, you can use the --validate option like this:

gitlab2prov --validate config.yaml

@cdboer cdboer closed this as completed Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about the project
Projects
None yet
Development

No branches or pull requests

2 participants