RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
727 stars 114 forks source link

Add the ability to pass `personalAccessToken` via environment variable #3

Closed modestman closed 4 years ago

modestman commented 4 years ago

Storing the figma.personalAccessToken in configuration file in repository is insecure. Please add the ability to pass personalAccessToken via environment variable. If property defined in both file and env variable then use environment variable value.

subdan commented 4 years ago

How a user will set a personalAccessToken via environment variable?

modestman commented 4 years ago

in terminal or .bash_profile:

export FIGMA_ACCESS_TOKEN=value

in CI server, environment variables passed through secrets in repository

subdan commented 4 years ago

Cool. A user who uses Fastlane could add FIGMA_ACCESS_TOKEN in the .env file.