Skip to content

Commit

Permalink
feat: move API credentials into environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
acch committed Sep 28, 2024
1 parent 2c51e5f commit d5a3cb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "terraform-provider-forgejo",

"build": {
"dockerfile": "Dockerfile"
},
Expand All @@ -21,5 +23,9 @@

"runArgs": ["--net=host"],

"remoteEnv": {}
"remoteEnv": {
// "FORGEJO_USERNAME": "${localEnv:FORGEJO_USERNAME}",
// "FORGEJO_PASSWORD": "${localEnv:FORGEJO_PASSWORD}",
"FORGEJO_API_TOKEN": "${localEnv:FORGEJO_API_TOKEN}"
}
}
4 changes: 1 addition & 3 deletions examples/data-sources/forgejo_organization/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ terraform {
}

provider "forgejo" {
host = "http://localhost:3000"
username = "achim"
password = "password"
host = "http://localhost:3000"
}

data "forgejo_organization" "this" {
Expand Down

0 comments on commit d5a3cb6

Please sign in to comment.