Skip to content

Commit

Permalink
fix: whitelist VERSION and CURRENT_VERSION env vars (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenyui committed Jan 30, 2022
1 parent 76a533b commit a30b68d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/vendor
/docs/public
/docs/.hugo_build.lock
/example/chat/node_modules
/integration/node_modules
/integration/schema-fetched.graphql
Expand Down
7 changes: 7 additions & 0 deletions docs/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ menu:
- name: pkg.go.dev →
parent: reference
url: https://pkg.go.dev/github.com/99designs/gqlgen

security:
funcs:
getenv:
- '^HUGO_'
- 'VERSIONS'
- 'CURRENT_VERSION'

0 comments on commit a30b68d

Please sign in to comment.