Skip to content

Commit

Permalink
Merge pull request #9426 from tharindu-nw/master
Browse files Browse the repository at this point in the history
Add description for setting access token via environment variable
  • Loading branch information
sm1990 authored Sep 20, 2024
2 parents 29b0215 + bd9a39c commit c201e25
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ You can publish a Ballerina archive to the <a href="https://central.ballerina.io
accesstoken="<token>"
```

If you are working in a context where it is not possible to save the `Settings.toml` file (e.g., within a CI/CD pipeline) you can set the access token via the `BALLERINA_CENTRAL_ACCESS_TOKEN` environment variable.

```
export BALLERINA_CENTRAL_ACCESS_TOKEN="<token>"
```

> **Note:** The tokens remain valid for one year from the generation date. Upon expiration, you must generate a new token and update the `Settings.toml` file to avoid the unauthorized access error.

### Configure proxy settings (optional)
Expand Down

0 comments on commit c201e25

Please sign in to comment.