Title: Support Custom GitHub Action use of GITHUB_ENV · Issue #47 · github/vscode-github-actions · GitHub
Open Graph Title: Support Custom GitHub Action use of GITHUB_ENV · Issue #47 · github/vscode-github-actions
X Title: Support Custom GitHub Action use of GITHUB_ENV · Issue #47 · github/vscode-github-actions
Description: Is your feature request related to a problem? Please describe. Some GitHub Actions use GITHUB_ENV to set up custom environment variables. When used inside a workflow, use ${{ env.CUSTOM_VARIABLE }} is flagged as Context access might be i...
Open Graph Description: Is your feature request related to a problem? Please describe. Some GitHub Actions use GITHUB_ENV to set up custom environment variables. When used inside a workflow, use ${{ env.CUSTOM_VARIABLE }}...
X Description: Is your feature request related to a problem? Please describe. Some GitHub Actions use GITHUB_ENV to set up custom environment variables. When used inside a workflow, use ${{ env.CUSTOM_VARIABLE }}...
Opengraph URL: https://github.com/github/vscode-github-actions/issues/47
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support Custom GitHub Action use of GITHUB_ENV","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nSome GitHub Actions use `GITHUB_ENV` to set up custom environment variables.\r\nWhen used inside a workflow, use `${{ env.CUSTOM_VARIABLE }}` is flagged as `Context access might be invalid`. \r\n\r\n**Describe the solution you'd like**\r\nEnable the custom GitHub Actions developer to define statically or dynamically the generated environment variables (like for the action output) and use it in this plugin to remove false-positive.\r\n\r\n**Additional context**\r\n\r\nThis workflow is flagged with the issue\r\n\r\n```yaml\r\nname: \"Context access might be invalid\"\r\non: push\r\njobs:\r\n context-access-might-be-invalid:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - name: Checkout\r\n uses: actions/checkout@v3\r\n\r\n - name: Setup environment variables\r\n uses: rlespinasse/github-slug-action@v4\r\n\r\n - name: Print custom environment variables\r\n run: echo ${{ env.GITHUB_REF_SLUG }}\r\n```\r\nAnd produces\r\n\u003cimg width=\"535\" alt=\"Capture d’écran 2023-03-28 à 20 15 36\" src=\"https://user-images.githubusercontent.com/1280212/228331163-d7be2fa4-63c9-453a-a59d-6656e9b113d1.png\">\r\n\r\n","author":{"url":"https://github.com/rlespinasse","@type":"Person","name":"rlespinasse"},"datePublished":"2023-03-28T18:21:45Z","url":"https://github.com/github/vscode-github-actions/issues/47"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1e2b3efb-b6b1-97b5-cdc2-dd5667f3a1c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E61C:3B17C2:2702B3:368AAE:6AFD8395 |
| html-safe-nonce | 2e4d53ad9faa12b69281fa6500d159be23c46b087ffc00ef8df25193f92c2e6d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjFDOjNCMTdDMjoyNzAyQjM6MzY4QUFFOjZBRkQ4Mzk1IiwidmlzaXRvcl9pZCI6IjM1NzkzMTI3MjQyMTcwMDQ5NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d538291ed310cf8a4ecfb89d335ee34232de224d8d8c26064742d7b0577a5b72 |
| hovercard-subject-tag | issue:1644457935 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/vscode-github-actions/47/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0408fecad72c9fae30e28d49e12669a333f9602509ac99873aaf9ca0ec0ad7ef/github/vscode-github-actions/issues/47 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0408fecad72c9fae30e28d49e12669a333f9602509ac99873aaf9ca0ec0ad7ef/github/vscode-github-actions/issues/47 |
| og:image:alt | Is your feature request related to a problem? Please describe. Some GitHub Actions use GITHUB_ENV to set up custom environment variables. When used inside a workflow, use ${{ env.CUSTOM_VARIABLE }}... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rlespinasse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/vscode-github-actions git https://github.com/github/vscode-github-actions.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 616663763 |
| octolytics-dimension-repository_nwo | github/vscode-github-actions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 616663763 |
| octolytics-dimension-repository_network_root_nwo | github/vscode-github-actions |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width