Commit Graph
34 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 4cf3365c68 Suppress warnings for step output property access (#236)
Fixes https://github.com/github/vscode-github-actions/issues/305

Step outputs are dynamic - actions can generate outputs based on
their inputs, so validating output property names is not feasible.

This marks step output dictionaries as incomplete so that accessing
any output property won't produce a warning. Known outputs from
action.yml will still be suggested for autocomplete.
2025-12-08 09:20:02 -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 e20dbae803 Skip secrets/vars validation when context is incomplete (#233) 2025-12-08 09:18:18 -06:00
eric scipleandGitHub 576402fc01 Optimize JSON data files to reduce bundle size by 90% (#229) 2025-12-05 10:27:19 -06:00
eric scipleandGitHub 216fcbb8c4 Add uses format validation for step and job-level workflows (#220) 2025-12-03 09:44:36 -06:00
Andrew Gillis f02e9593c2 Remove import assertions 2024-11-29 09:31:04 -05:00
Yukai Chou 026f4e3ece quote references 2023-09-08 17:31:46 +08:00
Yukai Chou 098e785c13 Drop version constraints "ghes > 3.5 or ghae > 3.4"
See github/docs@19ded728c0
2023-09-08 17:31:22 +08:00
Yukai Chou b0c2dec02f other contexts 2023-09-08 17:30:40 +08:00
Yukai Chou def4fb41a9 Add version constraints
see
- https://github.com/github/docs/blame/main/content/actions/learn-github-actions/contexts.md
- https://github.com/github/docs/blob/main/data/features/actions-oidc-custom-claims.yml
2023-09-08 17:30:40 +08:00
Yukai Chou 84335c7203 fixup! Update descriptions for github context 2023-09-08 17:30:40 +08:00
Yukai Chou 7e062aa16b hashFiles() function 2023-09-08 17:30:40 +08:00
Yukai Chou b67105b9b4 Update descriptions for github context 2023-09-08 17:30:40 +08:00
Yukai Chou 1b823ebe67 Drop version constraints "ghes > 3.3 or ghae > 3.3"
- ghes 3.3 is deprecated in github/docs@ac2cd0e47d
- ghae 3.3 is deprecated in github/docs@fefcf3b5a6
2023-09-08 17:29:55 +08:00
Yukai Chou 818a321069 Fix typo in url 2023-08-31 02:39:28 +08:00
Yukai Chou c4d2f35a55 Update github context properties 2023-08-31 02:36:50 +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 GrossandGitHub 02f848c60a Merge branch 'main' into joshmgross/schema-function-descriptions 2023-03-20 18:58:10 -04:00
Josh Gross 98e56cb774 Add descriptions for schema-defined functions 2023-03-20 17:06:25 -04:00
Josh Gross 9ef34c7e41 Lint the language service package 2023-03-20 13:33:58 -04:00
Christopher Schleiden e042ef6f88 Support events without default types
Merge all payloads for the events in that case.
2023-03-16 16:28:42 -07:00
Josh Gross 26f5eeede9 Lint the language service package 2023-03-15 16:52:56 -04:00
Josh GrossandGitHub 8e366d385e Merge pull request #179 from github/joshmgross/deduplicate-webhook-objects
Deduplicate objects in webhook payloads
2023-03-14 13:08:04 -04:00
Beth Brennan 6d2f3e5d8c Spelling 2023-03-14 11:14:36 -04:00
Beth Brennan 28dde4d6ac Skip secret validation for workflow_call 2023-03-13 17:24:05 -04:00
Josh Gross e2a4389fcf Deduplicate objects in webhook payloads 2023-03-13 11:02:01 -04:00
Beth Brennan 98caff1044 Remove unused code 2023-03-08 13:40:37 -05:00
Beth Brennan 87e3131958 Convert secrets, complete secrets in called workflow 2023-03-07 15:11:16 -05:00
Christopher SchleidenandGitHub f9074bf573 Merge pull request #166 from github/cschleiden/update-webhooks
Update webhooks with `allOf` handling
2023-02-23 14:45:00 -08:00
Christopher Schleiden 4a882b0aae Merge all allOf params for webhooks 2023-02-23 13:15:14 -08:00
Christopher Schleiden 89338e8f42 Do not replace event payloads with null 2023-02-23 12:52:17 -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