Repository navigation
Description
Expected Behavior
The documentation:
| For workflows that use matrixes, append the matrix name to the value using the following pattern `(<matrix_value>[, <matrix_value>])`. Matrixes should be specified based on the order of matrix properties in the workflow file. See [GitHub Documentation]("https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#using-a-matrix-strategy") for more information. |
i.e.:
For workflows that use matrixes, append the matrix name to the value using the following pattern
(<matrix_value>[, <matrix_value>])
suggests that for a workflow file looking like this:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
avsc: [5.7.x, 6.0.0-alpha.14]
steps:(see actual file here)
something like this:
required_status_checks {
strict = true
contexts = ["build (5.7.x, 6.0.0-alpha.14)", "npm"]
}should produce status checks for each of the matrix items, but it doesn't.
Only specifying it like this:
required_status_checks {
strict = true
contexts = ["build (5.7.x)", "build (6.0.0-alpha.14)", "npm"]
}produces two separate required checks correctly.
I have tried finding the code that supposedly handles the special matrix notation, but couldn't find so in 5809617. Nor can I find it in the history or any other issues or mention of matrix related to it anywhere in the codebase.
If I am holding it wrong, please take my apologies. If you could point me to the code handling this special case, that would be great, too.
Actual Behavior
It produces a required status check that verbatim requires a name with all matrix values, which is never fulfilled.
Terraform Version
Terraform 1.9.7 on Mac OS 14.6.1 (23G93) with terraform-provider-github 6.2.1
Affected Resource(s)
- github_branch_proctection
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
# github_branch_protection.avsc-zstandard-codec-main will be updated in-place
~ resource "github_branch_protection" "avsc-zstandard-codec-main" {
id = "BPR_kwDOMyV5ps4DPyW7"
# (10 unchanged attributes hidden)
~ required_status_checks {
~ contexts = [
- "build (5.7.x)",
+ "build (5.7.x, 6.0.0-alpha.14)",
# (1 unchanged element hidden)
]
# (1 unchanged attribute hidden)
}
}Panic Output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields🔥 Backlog
- StatusShow more project fieldsBacklog
Activity
github-actions commentedon Jul 9, 2025
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!joscha commentedon Jul 9, 2025
I don't seem to have the rights to add labels to this, but it's definitely not stale.
[-][BUG]: `github_branch_proctection` status checks with `matrix` values don't work as documented[/-][+][BUG]: `github_branch_protection` status checks with `matrix` values don't work as documented[/+]deiga commentedon Feb 11, 2026
Looking through the code there is no handling that would support how the docs could be understood. It seems to purely take the given list of strings and pass it along to the GH API.
It seems like an oversight of adding docs for functionality that was supposed to come?
[-][BUG]: `github_branch_protection` status checks with `matrix` values don't work as documented[/-][+][DOC]: `github_branch_protection` status checks with `matrix` values don't work as documented[/+]