For a repository on GitHub, I have configured an Environment with variables and secrets defined. I'd like to be able to use the entire collection in a GitHub Action without needing to individually map each variable from the github environment to the runner environment.
Given a dev environment defining TOKEN, FOO, BAR, and BAZ and the following workflow:
jobs:
  build:
    runs-on: ubuntu-latest
    environment: dev
    steps:
      - name: Build
        env:
          TOKEN: ${{ secrets.TOKEN }}
          FOO: ${{ vars.FOO }}
          BAR: ${{ vars.BAR }}
          BAZ: ${{ vars.BAZ }}
Is there a clever way to use the settings in the underlying sub-process environment without listing each variable (token, foo, bar, baz) explicitly?