Setting container options in workflow using secrets

I am trying to run software in a Github Workflow that requires me to set the mac address to use that software’s license. I have tried to do it using secrets in the following way.

container:
  image: nupole/diamond:latest
  options: --mac-address {{secrets.LICENSE_MAC_ADDRESS}}

I have also tried setting an environment variable that defaults for all jobs like below.

env:
  LICENSE_MAC_ADDRESS: ${{secrets.LICENSE_MAC_ADDRESS}}

If I try to access that in the options, it doesn’t work as well.

container:
  image: nupole/diamond:latest
  options: --mac-address $LICENSE_MAC_ADDRESS

Has anyone encountered this and have a workaround? Is there a plan to allow access to secrets at this level?

Use secrets or environment variables in container are not supported now.

Secret only available to action input and environment variable in the workflow file.

There is a previous ticket for a similar question. https://github.community/t5/GitHub-Actions/How-to-use-env-with-container-image/m-p/41812 

There is not a workaround already. I would encourage you submitting a feature request here . Thank you for your understanding and cooperation.