Yes, you can. I have for example:
{
"variables": {
"github_token": "{{ env `GITHUB_TOKEN` }}"
},
"builders": [...],
"provisioners": [
{
"type": "inspec",
"profile": "https://{{ user `github_token` }}@github.com/<org>/<repo>",
"extra_arguments": [
"--no-distinct-exit",
"--chef-license",
"accept-silent",
"--input-file",
"inputs.yml",
"--sudo"
]
}
]
}
The github token is passed to allow authentication, since the repo is private, but the https://
path works fine, just as if you were passing it from the cli.