Commit Graph
12 Commits
Author SHA1 Message Date
eric scipleandGitHub 8d2c24d7f5 Add missing runner context properties (environment, debug, workspace) (#241)
Fixes #78, #121

Adds three missing properties to the runner context:
- runner.environment: The runner environment (github-hosted or self-hosted)
- runner.debug: Set to '1' when step debug logging is enabled via ACTIONS_STEP_DEBUG
- runner.workspace: The runner-specific working directory path for the job

These are documented official properties that were causing false 'Context access might be invalid' warnings.
2025-12-08 09:22:49 -06:00
eric scipleandGitHub 1a63ee9de6 fix: always provide strategy and matrix contexts with defaults (#235)
Fixes https://github.com/github/vscode-github-actions/issues/113

The strategy and matrix contexts are always available in job steps,
even when no strategy block is defined.

Changes:
- Remove the hasStrategy filter from filterContextNames in default.ts
- Return null for matrix when no strategy is defined
- Provide default values for strategy properties:
  - fail-fast: true
  - job-index: 0
  - job-total: 1
  - max-parallel: 1
- Use defaults for missing strategy properties even when strategy IS defined
- Add comprehensive unit tests for strategy context

This eliminates false positive 'Context access might be invalid'
warnings when using strategy.* or matrix in jobs without an
explicit strategy block.
2025-12-08 09:19:40 -06:00
eric scipleandGitHub 216fcbb8c4 Add uses format validation for step and job-level workflows (#220) 2025-12-03 09:44:36 -06:00
Yukai Chou fe696132cf Update tests 2023-09-08 18:02:55 +08:00
Christopher SchleidenandChristopher Schleiden b82ddcdb42 Update import paths
String replacement from `@github/actions-` to `@actions/`
2023-03-23 09:57:18 -07:00
Josh Gross 9ef34c7e41 Lint the language service package 2023-03-20 13:33:58 -04:00
Beth BrennanandGitHub 22ba9a79e6 Merge pull request #176 from github/elbrenn/called-secret-complete
Convert secrets, complete secrets in called workflow
2023-03-08 13:59:55 -05:00
Beth Brennan 87e3131958 Convert secrets, complete secrets in called workflow 2023-03-07 15:11:16 -05:00
Jacob Wallraff b272ab29be Combine methods 2023-03-06 15:16:26 -08:00
Jacob Wallraff bde26c84ea Reset cache before expressions tests 2023-03-06 11:29:28 -08:00
Laura YuandGitHub 6843c36809 Add jobs context (#160) 2023-02-23 11:19:07 -08:00
Christopher Schleiden 2a3d63551f Rename folders 2023-02-22 15:52:40 -08:00