"Unrecognized named-value: 'env'. Located at position 1 within expression" when used in reusable workflow jobs
<!-- π You're opening a bug report against the GitHub Actions **runner application**. π Please stop if you're not certain that the bug you're seeing is in the runner application - if you have general problems with actions, workflows, or runners, please see the [GitHub Community Support Forum](https://github.community/c/code-to-cloud/52) which is actively monitored. Using the forum ensures that we route your problem to the correct team. π --> **Describe the bug** Usage of env in workflow that uses reusable workflow generates "Unrecognized named-value: 'env'. Located at position 1 within expression" **To Reproduce** Use the following yml: ``` name: Test Workflow on: push: env: SOMETHING: 1000 test: name: call workflow uses: ./.github/workflows/callee.yml secrets: inherit with: run_url: "{run_url}" message: ${{ env.SOMETHING }} ``` **Expected behavior** env.SOMETHING is usable and can be passed into reusable workflow **Actual behavior** ```The workflow is not valid. .github/workflows/create-branch.yml (Line: #, Col: ##): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SOMETHING``` ## Runner Version and Platform Version of your runner? OS of the machine running the runner? ubuntu-latest ## What's not working? 
Posted by nive-copia on Jan 16, 2023, 1:05 AM
Tags
Related issues
- Add 65536 size support for maps
- TypeScript 7.1 Iteration Plan
- nvim-treeconfig: upstream nvim-treesitter
- Add the "action" and "method" attributes to <button>
- [FEATURE] Support multiple Connector accounts (same connector, different accounts) in Claude and Claude Code on the web (claude.ai/code)
- > We were imposed GitHub for so many exercises!
Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments
support (Software)
Add 65536 size support for maps
TypeScript 7.1 Iteration Plan
nvim-treeconfig: upstream nvim-treesitter
Add the "action" and "method" attributes to <button>
[FEATURE] Support multiple Connector accounts (same connector, different accounts) in Claude and Claude Code on the web (claude.ai/code)
> We were imposed GitHub for so many exercises!
Add support for Visual Studio 2026 Integration
Support for Helm v4
"Unrecognized named-value: 'env'. Located at position 1 within expression" when used in reusable workflow jobs
<!-- π You're opening a bug report against the GitHub Actions **runner application**. π Please stop if you're not certain that the bug you're seeing is in the runner application - if you have general problems with actions, workflows, or runners, please see the [GitHub Community Support Forum](https://github.community/c/code-to-cloud/52) which is actively monitored. Using the forum ensures that we route your problem to the correct team. π --> **Describe the bug** Usage of env in workflow that uses reusable workflow generates "Unrecognized named-value: 'env'. Located at position 1 within expression" **To Reproduce** Use the following yml: ``` name: Test Workflow on: push: env: SOMETHING: 1000 test: name: call workflow uses: ./.github/workflows/callee.yml secrets: inherit with: run_url: "{run_url}" message: ${{ env.SOMETHING }} ``` **Expected behavior** env.SOMETHING is usable and can be passed into reusable workflow **Actual behavior** ```The workflow is not valid. .github/workflows/create-branch.yml (Line: #, Col: ##): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SOMETHING``` ## Runner Version and Platform Version of your runner? OS of the machine running the runner? ubuntu-latest ## What's not working? 
Comments (0)
No comments yet. Start the discussion.