--- title: "ADR 0045: tkn pac cel GitHub token enrichment is accepted but not implemented" --- * Status: accepted * Code: [`pkg/cmd/tknpac/cel/parser.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/cel/parser.go) (`GitHubParserWithToken`), [`pkg/cmd/tknpac/cel/github.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/cel/github.go), [`pkg/cmd/tknpac/cel/cel.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/cel/cel.go) ## Context The `--github-token` flag is described as "GitHub personal access token for API enrichment (enables full event processing)". When it is set, `cel.go` calls `eventFromGitHubWithToken` instead of `eventFromGitHub`. ## Decision `GitHubParserWithToken.PopulateEvent` runs the basic `GitHubParser` in both branches, with or without a token. The token is stored on the parser and never used to call the GitHub API. A source comment marked this as a TODO to add the enrichment later; the code does not show why it was left out beyond keeping the existing output unchanged. ## Consequences * Output is the same with or without `--github-token`. The flag help text promises more than the code delivers. * `TestEventFromGitHubWithProvider` in `cel_test.go` asserts the fallback: with an empty or an invalid token, `issue_comment` fields that need the API stay unpopulated and no error is returned. * Implementing the enrichment would change what CEL expressions can see for `issue_comment` events, so it needs its own decision.