What is `github.token` vs `secrets.GITHUB_TOKEN`?
BeginnerConceptContexts, Expressions, Env & Outputs
Answer
They are the same token for the current job. secrets.GITHUB_TOKEN is the traditional way to pass it; github.token is available in contexts where secrets is not, such as action defaults (default: ${{ github.token }} in action.yml). Many actions use it automatically unless you pass token:.
More on Contexts, Expressions, Env & Outputs
List the available contexts and what each holds.BeginnerWhich contexts can you use in which keys? Give two examples that trip people up.AdvancedWhat are the expression operators and how do comparisons coerce types?IntermediateHow do you write a ternary in GitHub Actions expressions?IntermediateWhat do `contains`, `startsWith`, `endsWith`, `format` and `join` do?BeginnerWhat are object filters (`.*`) and how are they useful?Intermediate