From 8c8d9c86b9a3b05f9988f1c70ce9b68578845afd Mon Sep 17 00:00:00 2001 From: Kristof Kowalski Date: Thu, 23 Nov 2023 15:13:30 +1100 Subject: [PATCH] feat: refactor from githubactionsevent to githubactions --- receiver/githubactionsreceiver/Makefile | 2 + receiver/githubactionsreceiver/README.md | 79 +++ receiver/githubactionsreceiver/config.go | 38 ++ receiver/githubactionsreceiver/config_test.go | 87 +++ receiver/githubactionsreceiver/doc.go | 6 + receiver/githubactionsreceiver/factory.go | 53 ++ .../githubactionsreceiver/factory_test.go | 71 +++ receiver/githubactionsreceiver/go.mod | 66 ++ receiver/githubactionsreceiver/go.sum | 497 +++++++++++++++ .../internal/metadata/generated_status.go | 12 + receiver/githubactionsreceiver/metadata.yaml | 10 + .../testdata/build/config.yaml | 27 + .../testdata/build/otelcol-builder.yaml | 22 + .../testdata/config.yaml | 3 + .../matrix/test-load-3.10.13.json | 181 ++++++ .../workflow_job/matrix/test-load-3.12.json | 181 ++++++ .../workflow_job/matrix/test-load-3.9.18.json | 181 ++++++ .../workflow_job/matrix/test-output.json | 181 ++++++ .../krzko/workflow_job/matrix/test.json | 245 ++++++++ .../krzko/workflow_job/small/pre-commit.json | 221 +++++++ .../krzko/workflow_job/small/test.json | 245 ++++++++ .../krzko/workflow_job/small/tests.json | 355 +++++++++++ .../testdata/krzko/workflow_run/tests.json | 355 +++++++++++ .../testdata/other/check_run_completed.json | 342 +++++++++++ .../testdata/other/check_run_created.json | 342 +++++++++++ .../testdata/other/check_suite_completed.json | 253 ++++++++ .../other/workflow_job_completed.json | 215 +++++++ .../other/workflow_job_completed_o11y.json | 215 +++++++ .../other/workflow_job_in_progress.json | 191 ++++++ .../testdata/other/workflow_job_queued.json | 158 +++++ .../other/workflow_run_completed.json | 367 +++++++++++ .../other/workflow_run_requested.json | 367 +++++++++++ .../success/1_workflow_job_queued.json | 151 +++++ .../success/2_workflow_run_in_progress.json | 352 +++++++++++ .../success/3_workflow_job_in_progress.json | 200 ++++++ .../success/4_workflow_job_queued.json | 151 +++++ .../success/5_workflow_job_completed.json | 224 +++++++ .../success/5_workflow_job_completed_fmt.json | 221 +++++++ .../success/6_workflow_job_in_progress.json | 160 +++++ .../success/7_workflow_run_in_progress.json | 352 +++++++++++ .../success/8_workflow_run_completed.json | 352 +++++++++++ .../success/8_workflow_run_completed_fmt.json | 349 +++++++++++ .../success/9_workflow_job_completed.json | 248 ++++++++ .../success/9_workflow_job_completed_fmt.json | 245 ++++++++ .../githubactionsreceiver/trace_receiver.go | 572 ++++++++++++++++++ .../trace_receiver_test.go | 60 ++ receiver/githubactionsreceiver/types.go | 408 +++++++++++++ 47 files changed, 9613 insertions(+) create mode 100644 receiver/githubactionsreceiver/Makefile create mode 100644 receiver/githubactionsreceiver/README.md create mode 100644 receiver/githubactionsreceiver/config.go create mode 100644 receiver/githubactionsreceiver/config_test.go create mode 100644 receiver/githubactionsreceiver/doc.go create mode 100644 receiver/githubactionsreceiver/factory.go create mode 100644 receiver/githubactionsreceiver/factory_test.go create mode 100644 receiver/githubactionsreceiver/go.mod create mode 100644 receiver/githubactionsreceiver/go.sum create mode 100644 receiver/githubactionsreceiver/internal/metadata/generated_status.go create mode 100644 receiver/githubactionsreceiver/metadata.yaml create mode 100644 receiver/githubactionsreceiver/testdata/build/config.yaml create mode 100644 receiver/githubactionsreceiver/testdata/build/otelcol-builder.yaml create mode 100644 receiver/githubactionsreceiver/testdata/config.yaml create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.10.13.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.12.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.9.18.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-output.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/pre-commit.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/test.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/tests.json create mode 100644 receiver/githubactionsreceiver/testdata/krzko/workflow_run/tests.json create mode 100644 receiver/githubactionsreceiver/testdata/other/check_run_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/other/check_run_created.json create mode 100644 receiver/githubactionsreceiver/testdata/other/check_suite_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/other/workflow_job_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/other/workflow_job_completed_o11y.json create mode 100644 receiver/githubactionsreceiver/testdata/other/workflow_job_in_progress.json create mode 100644 receiver/githubactionsreceiver/testdata/other/workflow_job_queued.json create mode 100644 receiver/githubactionsreceiver/testdata/other/workflow_run_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/other/workflow_run_requested.json create mode 100644 receiver/githubactionsreceiver/testdata/success/1_workflow_job_queued.json create mode 100644 receiver/githubactionsreceiver/testdata/success/2_workflow_run_in_progress.json create mode 100644 receiver/githubactionsreceiver/testdata/success/3_workflow_job_in_progress.json create mode 100644 receiver/githubactionsreceiver/testdata/success/4_workflow_job_queued.json create mode 100644 receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed_fmt.json create mode 100644 receiver/githubactionsreceiver/testdata/success/6_workflow_job_in_progress.json create mode 100644 receiver/githubactionsreceiver/testdata/success/7_workflow_run_in_progress.json create mode 100644 receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed_fmt.json create mode 100644 receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed.json create mode 100644 receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed_fmt.json create mode 100644 receiver/githubactionsreceiver/trace_receiver.go create mode 100644 receiver/githubactionsreceiver/trace_receiver_test.go create mode 100644 receiver/githubactionsreceiver/types.go diff --git a/receiver/githubactionsreceiver/Makefile b/receiver/githubactionsreceiver/Makefile new file mode 100644 index 000000000000..84677bc7e9cb --- /dev/null +++ b/receiver/githubactionsreceiver/Makefile @@ -0,0 +1,2 @@ +include ../../Makefile.Common + diff --git a/receiver/githubactionsreceiver/README.md b/receiver/githubactionsreceiver/README.md new file mode 100644 index 000000000000..bb53437cf760 --- /dev/null +++ b/receiver/githubactionsreceiver/README.md @@ -0,0 +1,79 @@ +# GitHub Actions Receiver + + +| Status | | +| ------------- |-----------| +| Stability | [alpha]: traces | +| Distributions | [] | +| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Fgithubactionsevent%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fgithubactionsevent) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Fgithubactionsevent%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fgithubactionsevent) | +| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@krzko](https://www.github.com/krzko), [@rich-bain](https://www.github.com/rich-bain) | + +[alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha + + +The GitHub Actions Receiver processes GitHub Actions webhook events to observe workflows and jobs. It handles [`workflow_job`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_job) and [`workflow_run`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_run) event payloads, transforming them into `trace` telemetry. + +Each GitHub Action workflow or job, along with its steps, are converted into trace spans, allowing the observation of workflow execution times, success, and failure rates. + +If a secret is configured (recommended), it [validates the payload](https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries) ensuring data integrity before processing. + +## Configuration + +The following settings are required: + +* `endpoint` (no default): The endpoint where you may point your webhook to emit events to + +The following settings are optional: + +* `path` (default: '/events'): Path where the receiver instance will accept events +* `secret`: GitHub webhook hash signature + +Example: +```yaml +receivers: + githubactions: + endpoint: localhost:19418 + path: /events + secret: It's a Secret to Everybody +``` +The full list of settings exposed for this receiver are documented [here](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) + +## GitHub repository webhooks + +Webhooks provide a way for notifications to be delivered to an external web server whenever certain events occur on GitHub. + +### Delivery headers + +HTTP POST payloads that are delivered to your webhook's configured URL endpoint will contain several special headers: + +* `X-Hub-Signature`: This header is sent if the webhook is configured with a `secret`. This is the HMAC hex digest of the request body, and is generated using the SHA-1 hash function and the `secret` as the HMAC `key`. `X-Hub-Signature` is provided for compatibility with existing integrations. It's recommended that you use the more secure `X-Hub-Signature-256` instead. +* `X-Hub-Signature-256`: This header is sent if the webhook is configured with a `secret` (recommended). This is the HMAC hex digest of the request body, and is generated using the SHA-256 hash function and the `secret` as the HMAC `key`. +* `User-Agent`: This header will always have the prefix `GitHub-Hookshot/`. + +### Creating webhooks + +You can create webhooks to subscribe to specific events that occur on GitHub. + +#### Creating a respositoty webhook + +You can create a webhook to subscribe to events that occur in a specific repository. You must be a repository owner or have admin access in the repository to create webhooks in that repository. + +1. On **GitHub.com**, navigate to the main page of the repository. +2. Under your repository name, click **Settings**. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings. +3. In the left sidebar, click **Webhooks**. +4. Click Add **webhook**. +5. Under "Payload URL", type the URL where you'd like to receive payloads. +6. Select the **Content type** drop-down menu, and click a data format to receive the webhook payload in. + * Select `application/json`, which will deliver the JSON payload directly as the body of the `POST` request. +7. Optionally (recomended), under "Secret", type a string to use as a secret key. You should choose a random string of text with high entropy. You can use the webhook secret to limit incoming requests to only those originating from GitHub. +8. Under "Which events would you like to trigger this webhook?" + * Select **Let me select individual events**. + * Uncheck **Pushes**, which is selected by default. + * Select **Workflow jobs**. + * Select **Workflow runs**. +9. To make the webhook active immediately after adding the configuration, select **Active**. +10. Click **Add webhook**. + +You can use the GitHub web interface or the REST API to create a repository webhook. For more information about using the REST API to create a repository webhook, see [Repository Webhooks](https://docs.github.com/en/rest/webhooks/repos?apiVersion=2022-11-28#create-a-repository-webhook). + +Alternatively you can use a configuration management tool such as [`terraform`](https://www.terraform.io/) with the [`github_repository_webhook`](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_webhook.html) resource, to configure webhooks. diff --git a/receiver/githubactionsreceiver/config.go b/receiver/githubactionsreceiver/config.go new file mode 100644 index 000000000000..784e4a2f89a8 --- /dev/null +++ b/receiver/githubactionsreceiver/config.go @@ -0,0 +1,38 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package githubactionsreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver" + +import ( + "errors" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/config/confighttp" + + "go.uber.org/multierr" +) + +var errMissingEndpointFromConfig = errors.New("missing receiver server endpoint from config") + +// Config defines configuration for GitHub Actions receiver +type Config struct { + confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct + Path string `mapstructure:"path"` // path for data collection. Default is :/events + Secret string `mapstructure:"secret"` // github webhook hash signature. Default is empty + CustomServiceName string `mapstructure:"custom_service_name"` // custom service name. Default is empty + ServiceNamePrefix string `mapstructure:"service_name_prefix"` // service name prefix. Default is empty + ServiceNameSuffix string `mapstructure:"service_name_suffix"` // service name suffix. Default is empty +} + +var _ component.Config = (*Config)(nil) + +// Validate checks the receiver configuration is valid +func (cfg *Config) Validate() error { + var errs error + + if cfg.HTTPServerSettings.Endpoint == "" { + errs = multierr.Append(errs, errMissingEndpointFromConfig) + } + + return errs +} diff --git a/receiver/githubactionsreceiver/config_test.go b/receiver/githubactionsreceiver/config_test.go new file mode 100644 index 000000000000..3412b6f66b84 --- /dev/null +++ b/receiver/githubactionsreceiver/config_test.go @@ -0,0 +1,87 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package githubactionsreceiver + +import ( + "path/filepath" + "testing" + + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/config/confighttp" + "go.opentelemetry.io/collector/confmap/confmaptest" + + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver/internal/metadata" +) + +// only one validate check so far +func TestValidateConfig(t *testing.T) { + t.Parallel() + + tests := []struct { + desc string + expect error + conf Config + }{ + { + desc: "Missing valid endpoint", + expect: errMissingEndpointFromConfig, + conf: Config{ + HTTPServerSettings: confighttp.HTTPServerSettings{ + Endpoint: "", + }, + }, + }, + { + desc: "Valid Secret", + expect: nil, + conf: Config{ + HTTPServerSettings: confighttp.HTTPServerSettings{ + Endpoint: "localhost:8080", + }, + Secret: "mysecret", + }, + }, + } + + for _, test := range tests { + t.Run(test.desc, func(t *testing.T) { + err := test.conf.Validate() + if test.expect == nil { + require.NoError(t, err) + require.Equal(t, "mysecret", test.conf.Secret) + } else { + require.Error(t, err) + require.Contains(t, err.Error(), test.expect.Error()) + } + }) + } +} + +func TestLoadConfig(t *testing.T) { + t.Parallel() + + cm, err := confmaptest.LoadConf(filepath.Join("testdata", "config.yaml")) + require.NoError(t, err) + // LoadConf includes the TypeStr which NewFactory does not set + id := component.NewIDWithName(metadata.Type, "valid_config") + cmNoStr, err := cm.Sub(id.String()) + require.NoError(t, err) + + expect := &Config{ + HTTPServerSettings: confighttp.HTTPServerSettings{ + Endpoint: "localhost:8080", + }, + Path: "/events", + Secret: "mysecret", + } + + // create expected config + factory := NewFactory() + conf := factory.CreateDefaultConfig() + require.NoError(t, component.UnmarshalConfig(cmNoStr, conf)) + require.NoError(t, component.ValidateConfig(conf)) + + require.Equal(t, expect, conf) +} diff --git a/receiver/githubactionsreceiver/doc.go b/receiver/githubactionsreceiver/doc.go new file mode 100644 index 000000000000..297189e9ac31 --- /dev/null +++ b/receiver/githubactionsreceiver/doc.go @@ -0,0 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +//go:generate mdatagen metadata.yaml + +package githubactionsreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver" diff --git a/receiver/githubactionsreceiver/factory.go b/receiver/githubactionsreceiver/factory.go new file mode 100644 index 000000000000..e27616221c10 --- /dev/null +++ b/receiver/githubactionsreceiver/factory.go @@ -0,0 +1,53 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package githubactionsreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver" + +import ( + "context" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/config/confighttp" + "go.opentelemetry.io/collector/consumer" + "go.opentelemetry.io/collector/receiver" + + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver/internal/metadata" +) + +// This file implements factory for GitHub Actions receiver. + +const ( + defaultBindEndpoint = "0.0.0.0:19418" + defaultPath = "/ghaevents" +) + +// NewFactory creates a new GitHub Actions receiver factory +func NewFactory() receiver.Factory { + return receiver.NewFactory( + metadata.Type, + createDefaultConfig, + receiver.WithTraces(createTracesReceiver, metadata.TracesStability), + ) +} + +// createDefaultConfig creates the default configuration for GitHub Actions receiver. +func createDefaultConfig() component.Config { + return &Config{ + HTTPServerSettings: confighttp.HTTPServerSettings{ + Endpoint: defaultBindEndpoint, + }, + Path: defaultPath, + Secret: "", + } +} + +// createTracesReceiver creates a trace receiver based on provided config. +func createTracesReceiver( + _ context.Context, + set receiver.CreateSettings, + cfg component.Config, + nextConsumer consumer.Traces, +) (receiver.Traces, error) { + rCfg := cfg.(*Config) + return newTracesReceiver(set, rCfg, nextConsumer) +} diff --git a/receiver/githubactionsreceiver/factory_test.go b/receiver/githubactionsreceiver/factory_test.go new file mode 100644 index 000000000000..04aa9b7fd442 --- /dev/null +++ b/receiver/githubactionsreceiver/factory_test.go @@ -0,0 +1,71 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package githubactionsreceiver + +import ( + "context" + "testing" + + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/consumer/consumertest" + "go.opentelemetry.io/collector/receiver/receivertest" +) + +func TestFactoryCreate(t *testing.T) { + factory := NewFactory() + require.EqualValues(t, "githubactions", factory.Type()) +} + +func TestDefaultConfig(t *testing.T) { + cfg := createDefaultConfig() + require.NotNil(t, cfg, "Failed to create default configuration") +} + +func TestCreateTracesReceiver(t *testing.T) { + tests := []struct { + desc string + run func(t *testing.T) + }{ + { + desc: "Defaults with valid inputs", + run: func(t *testing.T) { + t.Parallel() + + cfg := createDefaultConfig().(*Config) + cfg.Endpoint = "localhost:8080" + require.NoError(t, cfg.Validate(), "error validating default config") + + _, err := createTracesReceiver( + context.Background(), + receivertest.NewNopCreateSettings(), + cfg, + consumertest.NewNop(), + ) + require.NoError(t, err, "failed to create trace receiver") + }, + }, + { + desc: "Missing consumer", + run: func(t *testing.T) { + t.Parallel() + + cfg := createDefaultConfig().(*Config) + cfg.Endpoint = "localhost:8080" + require.NoError(t, cfg.Validate(), "error validating default config") + + _, err := createTracesReceiver( + context.Background(), + receivertest.NewNopCreateSettings(), + cfg, + nil, + ) + require.Error(t, err, "Succeeded in creating a receiver without a consumer") + }, + }, + } + + for _, test := range tests { + t.Run(test.desc, test.run) + } +} diff --git a/receiver/githubactionsreceiver/go.mod b/receiver/githubactionsreceiver/go.mod new file mode 100644 index 000000000000..7ee67b5a1b88 --- /dev/null +++ b/receiver/githubactionsreceiver/go.mod @@ -0,0 +1,66 @@ +module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver + +go 1.20 + +require ( + github.com/stretchr/testify v1.8.4 + go.opentelemetry.io/collector/component v0.86.0 + go.opentelemetry.io/collector/config/confighttp v0.86.0 + go.opentelemetry.io/collector/confmap v0.86.0 + go.opentelemetry.io/collector/consumer v0.86.0 + go.opentelemetry.io/collector/pdata v1.0.0-rcv0015 + go.opentelemetry.io/collector/receiver v0.86.0 + go.uber.org/multierr v1.11.0 + go.uber.org/zap v1.26.0 +) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/felixge/httpsnoop v1.0.3 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/klauspost/compress v1.17.0 // indirect + github.com/knadh/koanf v1.5.0 // indirect + github.com/knadh/koanf/v2 v2.0.1 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rs/cors v1.10.0 // indirect + go.opencensus.io v0.24.0 // indirect + go.opentelemetry.io/collector v0.86.0 // indirect + go.opentelemetry.io/collector/config/configauth v0.86.0 // indirect + go.opentelemetry.io/collector/config/configcompression v0.86.0 // indirect + go.opentelemetry.io/collector/config/configopaque v0.86.0 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.86.0 // indirect + go.opentelemetry.io/collector/config/configtls v0.86.0 // indirect + go.opentelemetry.io/collector/config/internal v0.86.0 // indirect + go.opentelemetry.io/collector/extension v0.86.0 // indirect + go.opentelemetry.io/collector/extension/auth v0.86.0 // indirect + go.opentelemetry.io/collector/featuregate v1.0.0-rcv0015 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect + go.opentelemetry.io/otel v1.18.0 // indirect + go.opentelemetry.io/otel/metric v1.18.0 // indirect + go.opentelemetry.io/otel/sdk v1.18.0 // indirect + go.opentelemetry.io/otel/sdk/metric v0.41.0 // indirect + go.opentelemetry.io/otel/trace v1.18.0 // indirect + golang.org/x/net v0.15.0 // indirect + golang.org/x/sys v0.12.0 // indirect + golang.org/x/text v0.13.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect + google.golang.org/grpc v1.58.2 // indirect + google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +retract ( + v0.76.2 + v0.76.1 +) diff --git a/receiver/githubactionsreceiver/go.sum b/receiver/githubactionsreceiver/go.sum new file mode 100644 index 000000000000..e38074995d92 --- /dev/null +++ b/receiver/githubactionsreceiver/go.sum @@ -0,0 +1,497 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aws/aws-sdk-go-v2 v1.9.2/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.8.3/go.mod h1:4AEiLtAb8kLs7vgw2ZV3p2VZ1+hBavOc84hqxVNpCyw= +github.com/aws/aws-sdk-go-v2/credentials v1.4.3/go.mod h1:FNNC6nQZQUuyhq5aE5c7ata8o9e4ECGmS4lAXC7o1mQ= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.6.0/go.mod h1:gqlclDEZp4aqJOancXK6TN24aKhT0W0Ae9MHk3wzTMM= +github.com/aws/aws-sdk-go-v2/internal/ini v1.2.4/go.mod h1:ZcBrrI3zBKlhGFNYWvju0I3TR93I7YIgAfy82Fh4lcQ= +github.com/aws/aws-sdk-go-v2/service/appconfig v1.4.2/go.mod h1:FZ3HkCe+b10uFZZkFdvf98LHW21k49W8o8J366lqVKY= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.2/go.mod h1:72HRZDLMtmVQiLG2tLfQcaWLCssELvGl+Zf2WVxMmR8= +github.com/aws/aws-sdk-go-v2/service/sso v1.4.2/go.mod h1:NBvT9R1MEF+Ud6ApJKM0G+IkPchKS7p7c2YPKwHmBOk= +github.com/aws/aws-sdk-go-v2/service/sts v1.7.2/go.mod h1:8EzeIqfWt2wWT4rJVu3f21TfrhJ8AEMzVybRNSb/b4g= +github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= +github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/consul/api v1.13.0/go.mod h1:ZlVrynguJKcYr54zGaDbaL3fOvKC9m72FhPvA8T35KQ= +github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= +github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= +github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= +github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= +github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= +github.com/hashicorp/vault/api v1.0.4/go.mod h1:gDcqh3WGcR1cpF5AJz/B1UFheUEneMoIospckxBxk6Q= +github.com/hashicorp/vault/sdk v0.1.13/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M= +github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hjson/hjson-go/v4 v4.0.0/go.mod h1:KaYt3bTw3zhBjYqnXkYywcYctk0A2nxeEFTse3rH13E= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.17.0 h1:Rnbp4K9EjcDuVuHtd0dgA4qNuv9yKDYKK1ulpJwgrqM= +github.com/klauspost/compress v1.17.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/knadh/koanf v1.5.0 h1:q2TSd/3Pyc/5yP9ldIrSdIz26MCcyNQzW0pEAugLPNs= +github.com/knadh/koanf v1.5.0/go.mod h1:Hgyjp4y8v44hpZtPzs7JZfRAW5AhN7KfZcwv1RYggDs= +github.com/knadh/koanf/v2 v2.0.1 h1:1dYGITt1I23x8cfx8ZnldtezdyaZtfAuRtIFOiRzK7g= +github.com/knadh/koanf/v2 v2.0.1/go.mod h1:ZeiIlIDXTE7w1lMT6UVcNiRAS2/rCeLn/GdLNvY1Dus= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 h1:BpfhmLKZf+SjVanKKhCgf3bg+511DmU9eDQTen7LLbY= +github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnuG+zWp9L0Uk= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= +github.com/prometheus/statsd_exporter v0.22.7 h1:7Pji/i2GuhK6Lu7DHrtTkFmNBCudCPT1pX2CziuyQR0= +github.com/rhnvrm/simples3 v0.6.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rs/cors v1.10.0 h1:62NOS1h+r8p1mW6FM0FSB0exioXLhd/sh15KpjWBZ+8= +github.com/rs/cors v1.10.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= +go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/collector v0.86.0 h1:Yxu0muUws9e7HG+5DDiYajkfAeOo/riUv0sJO4E9rXA= +go.opentelemetry.io/collector v0.86.0/go.mod h1:HoXzPE/mJMN4jy5E1cSUMznxkKFiGAGJbkguzpnq5ak= +go.opentelemetry.io/collector/component v0.86.0 h1:3+6OTiknu081jWYSUx4PdOecvmo0kn5w1YlydZLKz8E= +go.opentelemetry.io/collector/component v0.86.0/go.mod h1:XaBL2y1EhcmbCIFqAqk5r3xOZyi1SarwU7Wj/iTiDOA= +go.opentelemetry.io/collector/config/configauth v0.86.0 h1:cqfr/zXyGGg5TGgmS+Ws6XFy6DdBNJxkTLUWpOVzmVI= +go.opentelemetry.io/collector/config/configauth v0.86.0/go.mod h1:8/v2oLZe9kskODghcRQSp2xP56EySlU1aNRthEIwn8w= +go.opentelemetry.io/collector/config/configcompression v0.86.0 h1:qA7i0igeYEpOW4PcGk3tYYSAO5dn+aMuDbCc/D0Rli4= +go.opentelemetry.io/collector/config/configcompression v0.86.0/go.mod h1:LaavoxZsro5lL7qh1g9DMifG0qixWPEecW18Qr8bpag= +go.opentelemetry.io/collector/config/confighttp v0.86.0 h1:DLHWhUG3Xp9Gci6+ewJ21GwIV0RQd8jlNt3F36397uk= +go.opentelemetry.io/collector/config/confighttp v0.86.0/go.mod h1:FMCmz/9rg8AXxdltWKUbFxOGQ/g9rNvTfb4EUA+RjT4= +go.opentelemetry.io/collector/config/configopaque v0.86.0 h1:usNMgdFXbmprEcTImwVtziGkhXHeC/aWE93n2ZXlIO8= +go.opentelemetry.io/collector/config/configopaque v0.86.0/go.mod h1:TPCHaU+QXiEV+JXbgyr6mSErTI9chwQyasDVMdJr3eY= +go.opentelemetry.io/collector/config/configtelemetry v0.86.0 h1:xMqeL/gz7ZwZKRB58WYimEGU+Lvbzo5zd99uihjkMZY= +go.opentelemetry.io/collector/config/configtelemetry v0.86.0/go.mod h1:+LAXM5WFMW/UbTlAuSs6L/W72WC+q8TBJt/6z39FPOU= +go.opentelemetry.io/collector/config/configtls v0.86.0 h1:3BdB8Ntme+nDgYDPaWAb0jYbb/n7ueckN7hAPU3J3IM= +go.opentelemetry.io/collector/config/configtls v0.86.0/go.mod h1:vopMMIUjAvb6kojrc5G6vQOmfPIRxTU+hMHomvGNa2s= +go.opentelemetry.io/collector/config/internal v0.86.0 h1:r4LnOMxXmnKwAMaSX16bPe1jMbjkT9Up8VKt6IrJac0= +go.opentelemetry.io/collector/config/internal v0.86.0/go.mod h1:42VsQ/1kP2qnvzjNi+dfNP+KyCFRADejyrJ8m2GVL3M= +go.opentelemetry.io/collector/confmap v0.86.0 h1:u3qXVuIz2cmH/rb2teX0Ft/OKYHgObv1e4OQ2UXqxrE= +go.opentelemetry.io/collector/confmap v0.86.0/go.mod h1:vJms49x98lXUR7Mj6/28eXV+Otn3dDQpc+Znvex9Z84= +go.opentelemetry.io/collector/consumer v0.86.0 h1:8AL9I30tJV01KfcSaa+8DTiARIiUDA8o2p7yQoSFUCs= +go.opentelemetry.io/collector/consumer v0.86.0/go.mod h1:SvoV1eto4VZzQ3ILKQ1rv4qgN8rUMJqupn78hoXLHRw= +go.opentelemetry.io/collector/exporter v0.86.0 h1:LFmBb7S4Fkj5fv/nrUkLOy50GT6s4R/BLrv6uTb+GNo= +go.opentelemetry.io/collector/extension v0.86.0 h1:oXnZarkh1aBgnr/U3JSj/lPpBJUquOQ3DHMXXP4Jacc= +go.opentelemetry.io/collector/extension v0.86.0/go.mod h1:EPAloXQ+48577GvHTP5wGDvV4OyHPuldvM+2rYbM/fw= +go.opentelemetry.io/collector/extension/auth v0.86.0 h1:VwKbeElL8sBnvRDC565EWOw4ixMG/t0oXjIphNsRszU= +go.opentelemetry.io/collector/extension/auth v0.86.0/go.mod h1:qGIIkeWXaOtdYO1fYEn1vAEhUS+OhVcceUC1G3XOsdk= +go.opentelemetry.io/collector/featuregate v1.0.0-rcv0015 h1:Wv8JFRUD01MwWkhZwF85to5oukHDFPRjnt88ArDFqco= +go.opentelemetry.io/collector/featuregate v1.0.0-rcv0015/go.mod h1:fLmJMf1AoHttkF8p5oJAc4o5ZpHu8yO5XYJ7gbLCLzo= +go.opentelemetry.io/collector/pdata v1.0.0-rcv0015 h1:8PzrQFk3oKiT1Sd5EmNEcagdMyt1KcBy5/OyF5He5gY= +go.opentelemetry.io/collector/pdata v1.0.0-rcv0015/go.mod h1:I1PqyHJlsXjANC73tp43nDId7/jiv82NoZZ6uS0xdwM= +go.opentelemetry.io/collector/processor v0.86.0 h1:b4Htiom5mgcM5d7Memw1NkxBKgOADF1je0mLIhulQUM= +go.opentelemetry.io/collector/receiver v0.86.0 h1:AP+KZ225CmXR1oBD36+vV/pZcRFTkSiG7HvAVqfHoRg= +go.opentelemetry.io/collector/receiver v0.86.0/go.mod h1:oFpofH/OG4HqmaVsb8ftnIAhLAhQnH/3bWrOdZZZjTk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 h1:KfYpVmrjI7JuToy5k8XV3nkapjWx48k4E4JOtVstzQI= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0/go.mod h1:SeQhzAEccGVZVEy7aH87Nh0km+utSpo1pTv6eMMop48= +go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs= +go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI= +go.opentelemetry.io/otel/exporters/prometheus v0.41.0 h1:A3/bhjP5SmELy8dcpK+uttHeh9Qrh+YnS16/VzrztRQ= +go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ= +go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k= +go.opentelemetry.io/otel/sdk v1.18.0 h1:e3bAB0wB3MljH38sHzpV/qWrOTCFrdZF2ct9F8rBkcY= +go.opentelemetry.io/otel/sdk v1.18.0/go.mod h1:1RCygWV7plY2KmdskZEDDBs4tJeHG92MdHZIluiYs/M= +go.opentelemetry.io/otel/sdk/metric v0.41.0 h1:c3sAt9/pQ5fSIUfl0gPtClV3HhE18DCVzByD33R/zsk= +go.opentelemetry.io/otel/sdk/metric v0.41.0/go.mod h1:PmOmSt+iOklKtIg5O4Vz9H/ttcRFSNTgii+E1KGyn1w= +go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10= +go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= +go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= +go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= +google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= +google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/receiver/githubactionsreceiver/internal/metadata/generated_status.go b/receiver/githubactionsreceiver/internal/metadata/generated_status.go new file mode 100644 index 000000000000..e5ad6bade662 --- /dev/null +++ b/receiver/githubactionsreceiver/internal/metadata/generated_status.go @@ -0,0 +1,12 @@ +// Code generated by mdatagen. DO NOT EDIT. + +package metadata + +import ( + "go.opentelemetry.io/collector/component" +) + +const ( + Type = "githubactions" + TracesStability = component.StabilityLevelAlpha +) diff --git a/receiver/githubactionsreceiver/metadata.yaml b/receiver/githubactionsreceiver/metadata.yaml new file mode 100644 index 000000000000..f02016c24c4a --- /dev/null +++ b/receiver/githubactionsreceiver/metadata.yaml @@ -0,0 +1,10 @@ +type: githubactions + +status: + class: receiver + stability: + alpha: [traces] + distributions: + codeowners: + active: ["krzko", "rich-bain"] + emeritus: diff --git a/receiver/githubactionsreceiver/testdata/build/config.yaml b/receiver/githubactionsreceiver/testdata/build/config.yaml new file mode 100644 index 000000000000..efba7692167b --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/build/config.yaml @@ -0,0 +1,27 @@ +receivers: + githubactions: + # secret: my-secret + # custom_service_name: github // default org-repo-name + # service_name_prefix: foo- // ignored if custom_service_name set + # service_name_suffix: -bar // ignored if custom_service_name set + cors: + allowed_origins: ["*"] + allowed_headers: ["*"] + otlp: + protocols: + grpc: + http: + +processors: + # batch: + +exporters: + debug: + verbosity: detailed + +service: + pipelines: + traces: + receivers: [githubactions, otlp] + # processors: [batch] + exporters: [debug] diff --git a/receiver/githubactionsreceiver/testdata/build/otelcol-builder.yaml b/receiver/githubactionsreceiver/testdata/build/otelcol-builder.yaml new file mode 100644 index 000000000000..5e9c2b0f8e55 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/build/otelcol-builder.yaml @@ -0,0 +1,22 @@ +dist: + name: otelcol-dev + description: GitHub Actions to OTLP Custom Collector + version: 0.0.1 + output_path: /tmp/dist + +receivers: + # - gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.89.0 + - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubactionsreceiver v0.0.0 + path: ./ + +processors: + - gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.89.0 + +exporters: + - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.89.0 + - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.89.0 + - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.89.0 + +extensions: + - gomod: go.opentelemetry.io/collector/extension/ballastextension v0.89.0 + - gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.89.0 diff --git a/receiver/githubactionsreceiver/testdata/config.yaml b/receiver/githubactionsreceiver/testdata/config.yaml new file mode 100644 index 000000000000..4bf8bf0224fc --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/config.yaml @@ -0,0 +1,3 @@ +githubactions/valid_config: + endpoint: localhost:8080 + secret: "mysecret" diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.10.13.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.10.13.json new file mode 100644 index 000000000000..1bc30bd397de --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.10.13.json @@ -0,0 +1,181 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500160206, + "run_id": 6445769726, + "workflow_name": "Test action", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445769726", + "run_attempt": 2, + "node_id": "CR_kwDOKdcZe88AAAAEExdAzg", + "head_sha": "3a379bbb41314c79442db446d154f093e86c1880", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500160206", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445769726/job/17500160206", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T05:29:56Z", + "started_at": "2023-10-13T05:30:03Z", + "completed_at": "2023-10-13T05:30:08Z", + "name": "test-output-method-load (3.10.13)", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T05:30:02.000Z", + "completed_at": "2023-10-13T05:30:03.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T05:30:03.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T05:30:04.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T05:30:04.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500160206", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:29:34Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.12.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.12.json new file mode 100644 index 000000000000..ad69f827539d --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.12.json @@ -0,0 +1,181 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500160158, + "run_id": 6445769726, + "workflow_name": "Test action", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445769726", + "run_attempt": 2, + "node_id": "CR_kwDOKdcZe88AAAAEExdAng", + "head_sha": "3a379bbb41314c79442db446d154f093e86c1880", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500160158", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445769726/job/17500160158", + "status": "failure", + "conclusion": "cancelled", + "created_at": "2023-10-13T05:29:55Z", + "started_at": "2023-10-13T05:30:02Z", + "completed_at": "2023-10-13T05:30:07Z", + "name": "test-output-method-load (3.12.0)", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T05:30:02.000Z", + "completed_at": "2023-10-13T05:30:03.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "failure", + "number": 2, + "started_at": "2023-10-13T05:30:03.000Z", + "completed_at": "2023-10-13T05:30:06.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "skipped", + "number": 4, + "started_at": "2023-10-13T05:30:07.000Z", + "completed_at": "2023-10-13T05:30:07.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T05:30:06.000Z", + "completed_at": "2023-10-13T05:30:06.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500160158", + "labels": ["ubuntu-latest"], + "runner_id": 3, + "runner_name": "GitHub Actions 3", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:29:34Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.9.18.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.9.18.json new file mode 100644 index 000000000000..135f44fdac19 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-load-3.9.18.json @@ -0,0 +1,181 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500160231, + "run_id": 6445769726, + "workflow_name": "Test action", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445769726", + "run_attempt": 2, + "node_id": "CR_kwDOKdcZe88AAAAEExdA5w", + "head_sha": "3a379bbb41314c79442db446d154f093e86c1880", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500160231", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445769726/job/17500160231", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T05:29:57Z", + "started_at": "2023-10-13T05:30:03Z", + "completed_at": "2023-10-13T05:30:07Z", + "name": "test-output-method-load (3.9.18)", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T05:30:03.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T05:30:04.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T05:30:07.000Z", + "completed_at": "2023-10-13T05:30:07.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T05:30:04.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500160231", + "labels": ["ubuntu-latest"], + "runner_id": 8, + "runner_name": "GitHub Actions 8", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:29:34Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-output.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-output.json new file mode 100644 index 000000000000..f523be2bb03f --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test-output.json @@ -0,0 +1,181 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500160183, + "run_id": 6445769726, + "workflow_name": "Test action", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445769726", + "run_attempt": 2, + "node_id": "CR_kwDOKdcZe88AAAAEExdAtw", + "head_sha": "3a379bbb41314c79442db446d154f093e86c1880", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500160183", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445769726/job/17500160183", + "status": "completed", + "conclusion": "cancelled", + "created_at": "2023-10-13T05:29:56Z", + "started_at": "2023-10-13T05:30:01Z", + "completed_at": "2023-10-13T05:30:07Z", + "name": "test-output-method-load (3.11.6)", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T05:30:01.000Z", + "completed_at": "2023-10-13T05:30:02.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "cancelled", + "number": 2, + "started_at": "2023-10-13T05:30:02.000Z", + "completed_at": "2023-10-13T05:30:06.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "skipped", + "number": 4, + "started_at": "2023-10-13T05:30:07.000Z", + "completed_at": "2023-10-13T05:30:07.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T05:30:06.000Z", + "completed_at": "2023-10-13T05:30:07.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500160183", + "labels": ["ubuntu-latest"], + "runner_id": 6, + "runner_name": "GitHub Actions 6", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:29:34Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test.json new file mode 100644 index 000000000000..2beb4cfa9324 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/matrix/test.json @@ -0,0 +1,245 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500160202, + "run_id": 6445769724, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445769724", + "run_attempt": 2, + "node_id": "CR_kwDOKdcZe88AAAAEExdAyg", + "head_sha": "3a379bbb41314c79442db446d154f093e86c1880", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500160202", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445769724/job/17500160202", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T05:29:56Z", + "started_at": "2023-10-13T05:30:02Z", + "completed_at": "2023-10-13T05:30:40Z", + "name": "test", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T05:30:01.000Z", + "completed_at": "2023-10-13T05:30:03.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T05:30:03.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-13T05:30:04.000Z", + "completed_at": "2023-10-13T05:30:04.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T05:30:05.000Z", + "completed_at": "2023-10-13T05:30:05.000Z" + }, + { + "name": "Run snok/install-poetry@v1", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T05:30:05.000Z", + "completed_at": "2023-10-13T05:30:26.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2023-10-13T05:30:26.000Z", + "completed_at": "2023-10-13T05:30:27.000Z" + }, + { + "name": "Run pip install pyparsing==2.4.7", + "status": "completed", + "conclusion": "success", + "number": 7, + "started_at": "2023-10-13T05:30:27.000Z", + "completed_at": "2023-10-13T05:30:34.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 12, + "started_at": "2023-10-13T05:30:36.000Z", + "completed_at": "2023-10-13T05:30:39.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 13, + "started_at": "2023-10-13T05:30:40.000Z", + "completed_at": "2023-10-13T05:30:40.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 14, + "started_at": "2023-10-13T05:30:40.000Z", + "completed_at": "2023-10-13T05:30:40.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 16, + "started_at": "2023-10-13T05:30:39.000Z", + "completed_at": "2023-10-13T05:30:39.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 17, + "started_at": "2023-10-13T05:30:34.000Z", + "completed_at": "2023-10-13T05:30:36.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500160202", + "labels": ["ubuntu-latest"], + "runner_id": 9, + "runner_name": "GitHub Actions 9", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:29:34Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/pre-commit.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/pre-commit.json new file mode 100644 index 000000000000..6d31308953a9 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/pre-commit.json @@ -0,0 +1,221 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500330479, + "run_id": 6445853087, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087", + "run_attempt": 13, + "node_id": "CR_kwDOKdcZe88AAAAEExnZ7w", + "head_sha": "18c794325491632496d3bd43dcdd31a1d3cee3f4", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500330479", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445853087/job/17500330479", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-12T05:53:08Z", + "started_at": "2023-10-12T05:53:17Z", + "completed_at": "2023-10-12T05:53:29Z", + "name": "pre-commit", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-12T05:53:16.000Z", + "completed_at": "2023-10-12T05:53:19.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-12T05:53:19.000Z", + "completed_at": "2023-10-12T05:53:20.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-12T05:53:21.000Z", + "completed_at": "2023-10-12T05:53:21.000Z" + }, + { + "name": "Run pip install pre-commit", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-12T05:53:21.000Z", + "completed_at": "2023-10-12T05:53:24.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-12T05:53:24.000Z", + "completed_at": "2023-10-12T05:53:24.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2023-10-12T05:53:24.000Z", + "completed_at": "2023-10-12T05:53:24.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 9, + "started_at": "2023-10-12T05:53:24.000Z", + "completed_at": "2023-10-12T05:53:24.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 10, + "started_at": "2023-10-12T05:53:29.000Z", + "completed_at": "2023-10-12T05:53:29.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 11, + "started_at": "2023-10-12T05:53:25.000Z", + "completed_at": "2023-10-12T05:53:25.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500330479", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-12T04:54:00Z", + "updated_at": "2023-10-12T05:26:13Z", + "pushed_at": "2023-10-12T05:53:05Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/test.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/test.json new file mode 100644 index 000000000000..2f7f6f6948af --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/test.json @@ -0,0 +1,245 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17500332697, + "run_id": 6445853087, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087", + "run_attempt": 13, + "node_id": "CR_kwDOKdcZe88AAAAEExnimQ", + "head_sha": "18c794325491632496d3bd43dcdd31a1d3cee3f4", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17500332697", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445853087/job/17500332697", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T05:53:30Z", + "started_at": "2023-10-13T05:53:37Z", + "completed_at": "2023-10-13T05:53:49Z", + "name": "test", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T05:53:36.000Z", + "completed_at": "2023-10-13T05:53:39.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T05:53:39.000Z", + "completed_at": "2023-10-13T05:53:40.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-13T05:53:40.000Z", + "completed_at": "2023-10-13T05:53:40.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T05:53:41.000Z", + "completed_at": "2023-10-13T05:53:42.000Z" + }, + { + "name": "Run snok/install-poetry@v1", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T05:53:42.000Z", + "completed_at": "2023-10-13T05:53:44.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2023-10-13T05:53:44.000Z", + "completed_at": "2023-10-13T05:53:45.000Z" + }, + { + "name": "Run pip install pyparsing==2.4.7", + "status": "completed", + "conclusion": "skipped", + "number": 7, + "started_at": "2023-10-13T05:53:45.000Z", + "completed_at": "2023-10-13T05:53:45.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 12, + "started_at": "2023-10-13T05:53:46.000Z", + "completed_at": "2023-10-13T05:53:46.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 13, + "started_at": "2023-10-13T05:53:46.000Z", + "completed_at": "2023-10-13T05:53:46.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 14, + "started_at": "2023-10-13T05:53:49.000Z", + "completed_at": "2023-10-13T05:53:49.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 16, + "started_at": "2023-10-13T05:53:46.000Z", + "completed_at": "2023-10-13T05:53:46.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 17, + "started_at": "2023-10-13T05:53:45.000Z", + "completed_at": "2023-10-13T05:53:46.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17500332697", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:53:05Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/tests.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/tests.json new file mode 100644 index 000000000000..b9179f4805cd --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_job/small/tests.json @@ -0,0 +1,355 @@ +{ + "action": "in_progress", + "workflow_run": { + "id": 6445853087, + "name": "Tests", + "node_id": "WFR_kwLOKdcZe88AAAABgDPpnw", + "head_branch": "main", + "head_sha": "18c794325491632496d3bd43dcdd31a1d3cee3f4", + "path": ".github/workflows/tests.yml", + "display_title": "fix: update workflow", + "run_number": 13, + "event": "push", + "status": "in_progress", + "conclusion": "", + "workflow_id": 71922243, + "check_suite_id": 16997481434, + "check_suite_node_id": "CS_kwDOKdcZe88AAAAD9SD72g", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445853087", + "pull_requests": [], + "created_at": "2023-10-13T05:53:07Z", + "updated_at": "2023-10-13T05:53:50Z", + "actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2023-10-13T05:53:07Z", + "triggering_actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/jobs", + "logs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/logs", + "check_suite_url": "https://api.github.com/repos/krzko/webhook-testing/check-suites/16997481434", + "artifacts_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/artifacts", + "cancel_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/cancel", + "rerun_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "head_commit": { + "id": "18c794325491632496d3bd43dcdd31a1d3cee3f4", + "tree_id": "0baccdd88d43f0a9eb3d1f834079d2969d8850a4", + "message": "fix: update workflow", + "timestamp": "2023-10-13T05:53:02Z", + "author": { + "name": "Kristof Kowalski", + "email": "k@ko.wal.ski" + }, + "committer": { + "name": "Kristof Kowalski", + "email": "k@ko.wal.ski" + } + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + }, + "head_repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + } + }, + "workflow": { + "id": 71922243, + "node_id": "W_kwDOKdcZe84ESXJD", + "name": "Tests", + "path": ".github/workflows/tests.yml", + "state": "active", + "created_at": "2023-10-13T05:05:10.000Z", + "updated_at": "2023-10-13T05:05:10.000Z", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "html_url": "https://github.com/krzko/webhook-testing/blob/main/.github/workflows/tests.yml", + "badge_url": "https://github.com/krzko/webhook-testing/workflows/Tests/badge.svg" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:53:05Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/krzko/workflow_run/tests.json b/receiver/githubactionsreceiver/testdata/krzko/workflow_run/tests.json new file mode 100644 index 000000000000..6105b9ce7e63 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/krzko/workflow_run/tests.json @@ -0,0 +1,355 @@ +{ + "action": "completed", + "workflow_run": { + "id": 6445853087, + "name": "Tests", + "node_id": "WFR_kwLOKdcZe88AAAABgDPpnw", + "head_branch": "main", + "head_sha": "18c794325491632496d3bd43dcdd31a1d3cee3f4", + "path": ".github/workflows/tests.yml", + "display_title": "fix: update workflow", + "run_number": 5, + "event": "push", + "status": "completed", + "conclusion": "success", + "workflow_id": 71922243, + "check_suite_id": 16997481434, + "check_suite_node_id": "CS_kwDOKdcZe88AAAAD9SD72g", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6445853087", + "pull_requests": [], + "created_at": "2023-10-13T05:53:07Z", + "updated_at": "2023-10-13T05:53:50Z", + "actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2023-10-13T05:53:07Z", + "triggering_actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/jobs", + "logs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/logs", + "check_suite_url": "https://api.github.com/repos/krzko/webhook-testing/check-suites/16997481434", + "artifacts_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/artifacts", + "cancel_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/cancel", + "rerun_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6445853087/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "head_commit": { + "id": "18c794325491632496d3bd43dcdd31a1d3cee3f4", + "tree_id": "0baccdd88d43f0a9eb3d1f834079d2969d8850a4", + "message": "fix: update workflow", + "timestamp": "2023-10-13T05:53:02Z", + "author": { + "name": "Kristof Kowalski", + "email": "k@ko.wal.ski" + }, + "committer": { + "name": "Kristof Kowalski", + "email": "k@ko.wal.ski" + } + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + }, + "head_repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + } + }, + "workflow": { + "id": 71922243, + "node_id": "W_kwDOKdcZe84ESXJD", + "name": "Tests", + "path": ".github/workflows/tests.yml", + "state": "active", + "created_at": "2023-10-13T05:05:10.000Z", + "updated_at": "2023-10-13T05:05:10.000Z", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "html_url": "https://github.com/krzko/webhook-testing/blob/main/.github/workflows/tests.yml", + "badge_url": "https://github.com/krzko/webhook-testing/workflows/Tests/badge.svg" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T05:53:05Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/check_run_completed.json b/receiver/githubactionsreceiver/testdata/other/check_run_completed.json new file mode 100644 index 000000000000..a77f0f54a05f --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/check_run_completed.json @@ -0,0 +1,342 @@ +{ + "action": "completed", + "check_run": { + "id": 7744212146, + "name": "build", + "node_id": "CR_kwDOHnEjJs8AAAABzZdMsg", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "external_id": "ca395085-040a-526b-2ce8-bdc85f692774", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "details_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "status": "completed", + "conclusion": "success", + "started_at": "2022-08-09T10:40:56Z", + "completed_at": "2022-08-09T10:40:59Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146/annotations" + }, + "check_suite": { + "id": 7731034935, + "node_id": "CS_kwDOHnEjJs8AAAABzM47Nw", + "head_branch": "main", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "status": "in_progress", + "conclusion": null, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-suites/7731034935", + "before": "7bff3a06aa884f93f932650f283b31db78966332", + "after": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "pull_requests": [], + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "administration": "read", + "checks": "write", + "contents": "write", + "deployments": "write", + "discussions": "write", + "issues": "write", + "merge_queues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "security_events": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "branch_protection_rule", + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "merge_group", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch", + "workflow_dispatch", + "workflow_run" + ] + }, + "created_at": "2022-08-09T10:40:07Z", + "updated_at": "2022-08-09T10:40:57Z" + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "administration": "read", + "checks": "write", + "contents": "write", + "deployments": "write", + "discussions": "write", + "issues": "write", + "merge_queues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "security_events": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "branch_protection_rule", + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "merge_group", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch", + "workflow_dispatch", + "workflow_run" + ] + }, + "pull_requests": [] + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/check_run_created.json b/receiver/githubactionsreceiver/testdata/other/check_run_created.json new file mode 100644 index 000000000000..b12990eaf0a7 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/check_run_created.json @@ -0,0 +1,342 @@ +{ + "action": "created", + "check_run": { + "id": 7744212146, + "name": "build", + "node_id": "CR_kwDOHnEjJs8AAAABzZdMsg", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "external_id": "ca395085-040a-526b-2ce8-bdc85f692774", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "details_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "status": "queued", + "conclusion": null, + "started_at": "2022-08-09T10:40:10Z", + "completed_at": null, + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146/annotations" + }, + "check_suite": { + "id": 7731034935, + "node_id": "CS_kwDOHnEjJs8AAAABzM47Nw", + "head_branch": "main", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "status": "queued", + "conclusion": null, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-suites/7731034935", + "before": "7bff3a06aa884f93f932650f283b31db78966332", + "after": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "pull_requests": [], + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "administration": "read", + "checks": "write", + "contents": "write", + "deployments": "write", + "discussions": "write", + "issues": "write", + "merge_queues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "security_events": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "branch_protection_rule", + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "merge_group", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch", + "workflow_dispatch", + "workflow_run" + ] + }, + "created_at": "2022-08-09T10:40:07Z", + "updated_at": "2022-08-09T10:40:07Z" + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "administration": "read", + "checks": "write", + "contents": "write", + "deployments": "write", + "discussions": "write", + "issues": "write", + "merge_queues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "security_events": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "branch_protection_rule", + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "merge_group", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch", + "workflow_dispatch", + "workflow_run" + ] + }, + "pull_requests": [] + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/check_suite_completed.json b/receiver/githubactionsreceiver/testdata/other/check_suite_completed.json new file mode 100644 index 000000000000..4dee6b52360d --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/check_suite_completed.json @@ -0,0 +1,253 @@ +{ + "action": "completed", + "check_suite": { + "id": 7731034935, + "node_id": "CS_kwDOHnEjJs8AAAABzM47Nw", + "head_branch": "main", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "status": "completed", + "conclusion": "success", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-suites/7731034935", + "before": "7bff3a06aa884f93f932650f283b31db78966332", + "after": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "pull_requests": [], + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "administration": "read", + "checks": "write", + "contents": "write", + "deployments": "write", + "discussions": "write", + "issues": "write", + "merge_queues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "security_events": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "branch_protection_rule", + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "merge_group", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch", + "workflow_dispatch", + "workflow_run" + ] + }, + "created_at": "2022-08-09T10:40:07Z", + "updated_at": "2022-08-09T10:41:01Z", + "rerequestable": true, + "runs_rerequestable": false, + "latest_check_runs_count": 1, + "check_runs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-suites/7731034935/check-runs", + "head_commit": { + "id": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "tree_id": "6a3a4eb7e7e0b10131e7fa1c53d77c660c841808", + "message": "Merge pull request #215 from Ring-tail-lemur/fullText\n\nFull text", + "timestamp": "2022-08-09T10:40:05Z", + "author": { + "name": "Ryu Dong-In", + "email": "33488236+vidigummy@users.noreply.github.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + } + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/workflow_job_completed.json b/receiver/githubactionsreceiver/testdata/other/workflow_job_completed.json new file mode 100644 index 000000000000..00779b7b3a81 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/workflow_job_completed.json @@ -0,0 +1,215 @@ +{ + "action": "completed", + "workflow_job": { + "id": 7744212146, + "run_id": 2824632662, + "run_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "run_attempt": 1, + "node_id": "CR_kwDOHnEjJs8AAAABzZdMsg", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/jobs/7744212146", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "status": "completed", + "conclusion": "success", + "started_at": "2022-08-09T10:40:56Z", + "completed_at": "2022-08-09T10:40:59Z", + "name": "build", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2022-08-09T10:40:56.000Z", + "completed_at": "2022-08-09T10:40:57.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2022-08-09T10:40:57.000Z", + "completed_at": "2022-08-09T10:40:57.000Z" + }, + { + "name": "Set up Python 3.10", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2022-08-09T10:40:58.000Z", + "completed_at": "2022-08-09T10:40:58.000Z" + }, + { + "name": "echo 'heelo'", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2022-08-09T10:40:58.000Z", + "completed_at": "2022-08-09T10:40:58.000Z" + }, + { + "name": "Post Set up Python 3.10", + "status": "completed", + "conclusion": "success", + "number": 7, + "started_at": "2022-08-09T10:40:58.000Z", + "completed_at": "2022-08-09T10:40:58.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2022-08-09T10:40:58.000Z", + "completed_at": "2022-08-09T10:40:58.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 9, + "started_at": "2022-08-09T10:40:58.000Z", + "completed_at": "2022-08-09T10:40:58.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146", + "labels": ["ubuntu-latest"], + "runner_id": 1, + "runner_name": "Hosted Agent", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/workflow_job_completed_o11y.json b/receiver/githubactionsreceiver/testdata/other/workflow_job_completed_o11y.json new file mode 100644 index 000000000000..6cd6183abdff --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/workflow_job_completed_o11y.json @@ -0,0 +1,215 @@ +{ + "action": "completed", + "workflow_job": { + "id": 7744212146, + "run_id": 2824632662, + "run_url": "https://api.github.com/repos/o11y/githubactionsreceiver/actions/runs/2824632662", + "run_attempt": 1, + "node_id": "CR_kwDOHnEjJs8AAAABzZdMsg", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "url": "https://api.github.com/repos/o11y/githubactionsreceiver/actions/jobs/7744212146", + "html_url": "https://github.com/o11y/githubactionsreceiver/runs/7744212146?check_suite_focus=true", + "status": "completed", + "conclusion": "success", + "started_at": "2023-10-03T10:40:56Z", + "completed_at": "2023-10-03T10:40:59Z", + "name": "build", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-03T10:40:56.000Z", + "completed_at": "2023-10-03T10:40:57.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-03T10:40:57.000Z", + "completed_at": "2023-10-03T10:40:57.000Z" + }, + { + "name": "Set up Python 3.10", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-03T10:40:58.000Z", + "completed_at": "2023-10-03T10:40:58.000Z" + }, + { + "name": "echo 'heelo'", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-03T10:40:58.000Z", + "completed_at": "2023-10-03T10:40:58.000Z" + }, + { + "name": "Post Set up Python 3.10", + "status": "completed", + "conclusion": "success", + "number": 7, + "started_at": "2023-10-03T10:40:58.000Z", + "completed_at": "2023-10-03T10:40:58.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2023-10-03T10:40:58.000Z", + "completed_at": "2023-10-03T10:40:58.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 9, + "started_at": "2023-10-03T10:40:58.000Z", + "completed_at": "2023-10-03T10:40:58.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/o11y/githubactionsreceiver/check-runs/7744212146", + "labels": ["ubuntu-latest"], + "runner_id": 1, + "runner_name": "Hosted Agent", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "githubactionsreceiver", + "full_name": "o11y/githubactionsreceiver", + "private": false, + "owner": { + "login": "o11y", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/o11y", + "html_url": "https://github.com/o11y", + "followers_url": "https://api.github.com/users/o11y/followers", + "following_url": "https://api.github.com/users/o11y/following{/other_user}", + "gists_url": "https://api.github.com/users/o11y/gists{/gist_id}", + "starred_url": "https://api.github.com/users/o11y/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/o11y/subscriptions", + "organizations_url": "https://api.github.com/users/o11y/orgs", + "repos_url": "https://api.github.com/users/o11y/repos", + "events_url": "https://api.github.com/users/o11y/events{/privacy}", + "received_events_url": "https://api.github.com/users/o11y/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/o11y/githubactionsreceiver", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/o11y/githubactionsreceiver", + "forks_url": "https://api.github.com/repos/o11y/githubactionsreceiver/forks", + "keys_url": "https://api.github.com/repos/o11y/githubactionsreceiver/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/o11y/githubactionsreceiver/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/o11y/githubactionsreceiver/teams", + "hooks_url": "https://api.github.com/repos/o11y/githubactionsreceiver/hooks", + "issue_events_url": "https://api.github.com/repos/o11y/githubactionsreceiver/issues/events{/number}", + "events_url": "https://api.github.com/repos/o11y/githubactionsreceiver/events", + "assignees_url": "https://api.github.com/repos/o11y/githubactionsreceiver/assignees{/user}", + "branches_url": "https://api.github.com/repos/o11y/githubactionsreceiver/branches{/branch}", + "tags_url": "https://api.github.com/repos/o11y/githubactionsreceiver/tags", + "blobs_url": "https://api.github.com/repos/o11y/githubactionsreceiver/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/o11y/githubactionsreceiver/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/o11y/githubactionsreceiver/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/o11y/githubactionsreceiver/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/o11y/githubactionsreceiver/statuses/{sha}", + "languages_url": "https://api.github.com/repos/o11y/githubactionsreceiver/languages", + "stargazers_url": "https://api.github.com/repos/o11y/githubactionsreceiver/stargazers", + "contributors_url": "https://api.github.com/repos/o11y/githubactionsreceiver/contributors", + "subscribers_url": "https://api.github.com/repos/o11y/githubactionsreceiver/subscribers", + "subscription_url": "https://api.github.com/repos/o11y/githubactionsreceiver/subscription", + "commits_url": "https://api.github.com/repos/o11y/githubactionsreceiver/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/o11y/githubactionsreceiver/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/o11y/githubactionsreceiver/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/o11y/githubactionsreceiver/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/o11y/githubactionsreceiver/contents/{+path}", + "compare_url": "https://api.github.com/repos/o11y/githubactionsreceiver/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/o11y/githubactionsreceiver/merges", + "archive_url": "https://api.github.com/repos/o11y/githubactionsreceiver/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/o11y/githubactionsreceiver/downloads", + "issues_url": "https://api.github.com/repos/o11y/githubactionsreceiver/issues{/number}", + "pulls_url": "https://api.github.com/repos/o11y/githubactionsreceiver/pulls{/number}", + "milestones_url": "https://api.github.com/repos/o11y/githubactionsreceiver/milestones{/number}", + "notifications_url": "https://api.github.com/repos/o11y/githubactionsreceiver/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/o11y/githubactionsreceiver/labels{/name}", + "releases_url": "https://api.github.com/repos/o11y/githubactionsreceiver/releases{/id}", + "deployments_url": "https://api.github.com/repos/o11y/githubactionsreceiver/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2023-10-03T10:40:09Z", + "pushed_at": "2023-10-03T10:40:05Z", + "git_url": "git://github.com/o11y/githubactionsreceiver.git", + "ssh_url": "git@github.com:o11y/githubactionsreceiver.git", + "clone_url": "https://github.com/o11y/githubactionsreceiver.git", + "svn_url": "https://github.com/o11y/githubactionsreceiver", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "o11y", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/o11y", + "repos_url": "https://api.github.com/orgs/o11y/repos", + "events_url": "https://api.github.com/orgs/o11y/events", + "hooks_url": "https://api.github.com/orgs/o11y/hooks", + "issues_url": "https://api.github.com/orgs/o11y/issues", + "members_url": "https://api.github.com/orgs/o11y/members{/member}", + "public_members_url": "https://api.github.com/orgs/o11y/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/workflow_job_in_progress.json b/receiver/githubactionsreceiver/testdata/other/workflow_job_in_progress.json new file mode 100644 index 000000000000..7829bf1f35d9 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/workflow_job_in_progress.json @@ -0,0 +1,191 @@ +{ + "action": "in_progress", + "workflow_job": { + "id": 7744212146, + "run_id": 2824632662, + "run_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "run_attempt": 1, + "node_id": "CR_kwDOHnEjJs8AAAABzZdMsg", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/jobs/7744212146", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "status": "in_progress", + "conclusion": null, + "started_at": "2022-08-09T10:40:56Z", + "completed_at": null, + "name": "build", + "steps": [ + { + "name": "Set up job", + "status": "in_progress", + "conclusion": null, + "number": 1, + "started_at": "2022-08-09T10:40:56.000Z", + "completed_at": null + }, + { + "name": "Run actions/checkout@v3", + "status": "queued", + "conclusion": null, + "number": 2, + "started_at": null, + "completed_at": null + }, + { + "name": "Set up Python 3.10", + "status": "queued", + "conclusion": null, + "number": 3, + "started_at": null, + "completed_at": null + }, + { + "name": "echo 'heelo'", + "status": "queued", + "conclusion": null, + "number": 4, + "started_at": null, + "completed_at": null + } + ], + "check_run_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146", + "labels": ["ubuntu-latest"], + "runner_id": 1, + "runner_name": "Hosted Agent", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/workflow_job_queued.json b/receiver/githubactionsreceiver/testdata/other/workflow_job_queued.json new file mode 100644 index 000000000000..4de321280849 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/workflow_job_queued.json @@ -0,0 +1,158 @@ +{ + "action": "queued", + "workflow_job": { + "id": 7744212146, + "run_id": 2824632662, + "run_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "run_attempt": 1, + "node_id": "CR_kwDOHnEjJs8AAAABzZdMsg", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/jobs/7744212146", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/runs/7744212146?check_suite_focus=true", + "status": "queued", + "conclusion": null, + "started_at": "2022-08-09T10:40:10Z", + "completed_at": null, + "name": "build", + "steps": [], + "check_run_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-runs/7744212146", + "labels": ["ubuntu-latest"], + "runner_id": null, + "runner_name": null, + "runner_group_id": null, + "runner_group_name": null + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/workflow_run_completed.json b/receiver/githubactionsreceiver/testdata/other/workflow_run_completed.json new file mode 100644 index 000000000000..86ab6b86bc59 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/workflow_run_completed.json @@ -0,0 +1,367 @@ +{ + "action": "completed", + "workflow_run": { + "id": 2824632662, + "name": "Python application", + "node_id": "WFR_kwLOHnEjJs6oXHlW", + "head_branch": "main", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "path": ".github/workflows/python-app.yml", + "run_number": 75, + "event": "push", + "status": "completed", + "conclusion": "success", + "workflow_id": 31403384, + "check_suite_id": 7731034935, + "check_suite_node_id": "CS_kwDOHnEjJs8AAAABzM47Nw", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "pull_requests": [], + "created_at": "2022-08-09T10:40:07Z", + "updated_at": "2022-08-09T10:41:01Z", + "actor": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-09T10:40:07Z", + "triggering_actor": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/jobs", + "logs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/logs", + "check_suite_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-suites/7731034935", + "artifacts_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/artifacts", + "cancel_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/cancel", + "rerun_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/workflows/31403384", + "head_commit": { + "id": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "tree_id": "6a3a4eb7e7e0b10131e7fa1c53d77c660c841808", + "message": "Merge pull request #215 from Ring-tail-lemur/fullText\n\nFull text", + "timestamp": "2022-08-09T10:40:05Z", + "author": { + "name": "Ryu Dong-In", + "email": "33488236+vidigummy@users.noreply.github.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments" + }, + "head_repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments" + } + }, + "workflow": { + "id": 31403384, + "node_id": "W_kwDOHnEjJs4B3y14", + "name": "Python application", + "path": ".github/workflows/python-app.yml", + "state": "active", + "created_at": "2022-08-01T02:29:06.000Z", + "updated_at": "2022-08-01T02:29:06.000Z", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/workflows/31403384", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/blob/main/.github/workflows/python-app.yml", + "badge_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/workflows/Python%20application/badge.svg" + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-09T10:40:09Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/other/workflow_run_requested.json b/receiver/githubactionsreceiver/testdata/other/workflow_run_requested.json new file mode 100644 index 000000000000..45b8830f6b0f --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/other/workflow_run_requested.json @@ -0,0 +1,367 @@ +{ + "action": "requested", + "workflow_run": { + "id": 2824632662, + "name": "Python application", + "node_id": "WFR_kwLOHnEjJs6oXHlW", + "head_branch": "main", + "head_sha": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "path": ".github/workflows/python-app.yml", + "run_number": 75, + "event": "push", + "status": "queued", + "conclusion": null, + "workflow_id": 31403384, + "check_suite_id": 7731034935, + "check_suite_node_id": "CS_kwDOHnEjJs8AAAABzM47Nw", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662", + "pull_requests": [], + "created_at": "2022-08-09T10:40:07Z", + "updated_at": "2022-08-09T10:40:07Z", + "actor": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-09T10:40:07Z", + "triggering_actor": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/jobs", + "logs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/logs", + "check_suite_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/check-suites/7731034935", + "artifacts_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/artifacts", + "cancel_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/cancel", + "rerun_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/runs/2824632662/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/workflows/31403384", + "head_commit": { + "id": "18c32d2df2b89d5f0f83b0e5dff9ef2b8a53d3a1", + "tree_id": "6a3a4eb7e7e0b10131e7fa1c53d77c660c841808", + "message": "Merge pull request #215 from Ring-tail-lemur/fullText\n\nFull text", + "timestamp": "2022-08-09T10:40:05Z", + "author": { + "name": "Ryu Dong-In", + "email": "33488236+vidigummy@users.noreply.github.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments" + }, + "head_repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments" + } + }, + "workflow": { + "id": 31403384, + "node_id": "W_kwDOHnEjJs4B3y14", + "name": "Python application", + "path": ".github/workflows/python-app.yml", + "state": "active", + "created_at": "2022-08-01T02:29:06.000Z", + "updated_at": "2022-08-01T02:29:06.000Z", + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/actions/workflows/31403384", + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/blob/main/.github/workflows/python-app.yml", + "badge_url": "https://github.com/Ring-tail-lemur/test-for-fake-project/workflows/Python%20application/badge.svg" + }, + "repository": { + "id": 510731046, + "node_id": "R_kgDOHnEjJg", + "name": "test-for-fake-project", + "full_name": "Ring-tail-lemur/test-for-fake-project", + "private": false, + "owner": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Ring-tail-lemur", + "html_url": "https://github.com/Ring-tail-lemur", + "followers_url": "https://api.github.com/users/Ring-tail-lemur/followers", + "following_url": "https://api.github.com/users/Ring-tail-lemur/following{/other_user}", + "gists_url": "https://api.github.com/users/Ring-tail-lemur/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Ring-tail-lemur/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Ring-tail-lemur/subscriptions", + "organizations_url": "https://api.github.com/users/Ring-tail-lemur/orgs", + "repos_url": "https://api.github.com/users/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/users/Ring-tail-lemur/events{/privacy}", + "received_events_url": "https://api.github.com/users/Ring-tail-lemur/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "description": "우리는 가짜 협업을 할 것이다.", + "fork": false, + "url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project", + "forks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/forks", + "keys_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/teams", + "hooks_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/hooks", + "issue_events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/events{/number}", + "events_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/events", + "assignees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/assignees{/user}", + "branches_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/branches{/branch}", + "tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/tags", + "blobs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/languages", + "stargazers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/stargazers", + "contributors_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contributors", + "subscribers_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscribers", + "subscription_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/subscription", + "commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/contents/{+path}", + "compare_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/merges", + "archive_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/downloads", + "issues_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/issues{/number}", + "pulls_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/labels{/name}", + "releases_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/releases{/id}", + "deployments_url": "https://api.github.com/repos/Ring-tail-lemur/test-for-fake-project/deployments", + "created_at": "2022-07-05T12:40:32Z", + "updated_at": "2022-08-02T04:59:11Z", + "pushed_at": "2022-08-09T10:40:05Z", + "git_url": "git://github.com/Ring-tail-lemur/test-for-fake-project.git", + "ssh_url": "git@github.com:Ring-tail-lemur/test-for-fake-project.git", + "clone_url": "https://github.com/Ring-tail-lemur/test-for-fake-project.git", + "svn_url": "https://github.com/Ring-tail-lemur/test-for-fake-project", + "homepage": null, + "size": 259, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 3, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 3, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + }, + "organization": { + "login": "Ring-tail-lemur", + "id": 107110653, + "node_id": "O_kgDOBmJg_Q", + "url": "https://api.github.com/orgs/Ring-tail-lemur", + "repos_url": "https://api.github.com/orgs/Ring-tail-lemur/repos", + "events_url": "https://api.github.com/orgs/Ring-tail-lemur/events", + "hooks_url": "https://api.github.com/orgs/Ring-tail-lemur/hooks", + "issues_url": "https://api.github.com/orgs/Ring-tail-lemur/issues", + "members_url": "https://api.github.com/orgs/Ring-tail-lemur/members{/member}", + "public_members_url": "https://api.github.com/orgs/Ring-tail-lemur/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/107110653?v=4", + "description": "" + }, + "sender": { + "login": "vidigummy", + "id": 33488236, + "node_id": "MDQ6VXNlcjMzNDg4MjM2", + "avatar_url": "https://avatars.githubusercontent.com/u/33488236?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vidigummy", + "html_url": "https://github.com/vidigummy", + "followers_url": "https://api.github.com/users/vidigummy/followers", + "following_url": "https://api.github.com/users/vidigummy/following{/other_user}", + "gists_url": "https://api.github.com/users/vidigummy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vidigummy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vidigummy/subscriptions", + "organizations_url": "https://api.github.com/users/vidigummy/orgs", + "repos_url": "https://api.github.com/users/vidigummy/repos", + "events_url": "https://api.github.com/users/vidigummy/events{/privacy}", + "received_events_url": "https://api.github.com/users/vidigummy/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/1_workflow_job_queued.json b/receiver/githubactionsreceiver/testdata/success/1_workflow_job_queued.json new file mode 100644 index 000000000000..128172766015 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/1_workflow_job_queued.json @@ -0,0 +1,151 @@ +{ + "event": "workflow_job", + "payload": { + "action": "queued", + "workflow_job": { + "id": 17556730984, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnZ0aA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556730984", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556730984", + "status": "queued", + "conclusion": null, + "created_at": "2023-10-13T10:11:27Z", + "started_at": "2023-10-13T10:11:27Z", + "completed_at": null, + "name": "pre-commit", + "steps": [], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556730984", + "labels": ["ubuntu-latest"], + "runner_id": null, + "runner_name": null, + "runner_group_id": null, + "runner_group_name": null + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/2_workflow_run_in_progress.json b/receiver/githubactionsreceiver/testdata/success/2_workflow_run_in_progress.json new file mode 100644 index 000000000000..f752c3f0c31a --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/2_workflow_run_in_progress.json @@ -0,0 +1,352 @@ +{ + "event": "workflow_run", + "payload": { + "action": "in_progress", + "workflow_run": { + "id": 6454805877, + "name": "Tests", + "node_id": "WFR_kwLOKdcZe88AAAABgLyFdQ", + "head_branch": "main", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "path": ".github/workflows/tests.yml", + "display_title": "fix: updating readme", + "run_number": 14, + "event": "push", + "status": "in_progress", + "conclusion": null, + "workflow_id": 71922243, + "check_suite_id": 17024118772, + "check_suite_node_id": "CS_kwDOKdcZe88AAAAD9rdv9A", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877", + "pull_requests": [], + "created_at": "2023-10-13T09:30:43Z", + "updated_at": "2023-10-13T10:11:35Z", + "actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 10, + "referenced_workflows": [], + "run_started_at": "2023-10-13T10:11:25Z", + "triggering_actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/jobs", + "logs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/logs", + "check_suite_url": "https://api.github.com/repos/krzko/webhook-testing/check-suites/17024118772", + "artifacts_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/artifacts", + "cancel_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/cancel", + "rerun_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/rerun", + "previous_attempt_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/attempts/4", + "workflow_url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "head_commit": { + "id": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "tree_id": "3b96a448f3efb1b621fe356f6cc65f41c9c0cbe4", + "message": "fix: updating readme", + "timestamp": "2023-10-13T09:30:37Z", + "author": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" }, + "committer": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" } + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + }, + "head_repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + } + }, + "workflow": { + "id": 71922243, + "node_id": "W_kwDOKdcZe84ESXJD", + "name": "Tests", + "path": ".github/workflows/tests.yml", + "state": "active", + "created_at": "2023-10-13T05:05:10.000Z", + "updated_at": "2023-10-13T05:05:10.000Z", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "html_url": "https://github.com/krzko/webhook-testing/blob/main/.github/workflows/tests.yml", + "badge_url": "https://github.com/krzko/webhook-testing/workflows/Tests/badge.svg" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/3_workflow_job_in_progress.json b/receiver/githubactionsreceiver/testdata/success/3_workflow_job_in_progress.json new file mode 100644 index 000000000000..14a9f82a73b8 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/3_workflow_job_in_progress.json @@ -0,0 +1,200 @@ +{ + "event": "workflow_job", + "payload": { + "action": "in_progress", + "workflow_job": { + "id": 17556730984, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnZ0aA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556730984", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556730984", + "status": "in_progress", + "conclusion": null, + "created_at": "2023-10-13T10:11:27Z", + "started_at": "2023-10-13T10:11:34Z", + "completed_at": null, + "name": "pre-commit", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T10:11:33.000Z", + "completed_at": "2023-10-13T10:11:35.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "in_progress", + "conclusion": null, + "number": 2, + "started_at": "2023-10-13T10:11:35.000Z", + "completed_at": null + }, + { + "name": "Run actions/setup-python@v4", + "status": "queued", + "conclusion": null, + "number": 3, + "started_at": null, + "completed_at": null + }, + { + "name": "Run pip install pre-commit", + "status": "queued", + "conclusion": null, + "number": 4, + "started_at": null, + "completed_at": null + }, + { + "name": "Run actions/cache@v3", + "status": "queued", + "conclusion": null, + "number": 5, + "started_at": null, + "completed_at": null + }, + { + "name": "Post Run actions/checkout@v3", + "status": "queued", + "conclusion": null, + "number": 10, + "started_at": null, + "completed_at": null + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556730984", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/4_workflow_job_queued.json b/receiver/githubactionsreceiver/testdata/success/4_workflow_job_queued.json new file mode 100644 index 000000000000..c4d4dfa1580a --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/4_workflow_job_queued.json @@ -0,0 +1,151 @@ +{ + "event": "workflow_job", + "payload": { + "action": "queued", + "workflow_job": { + "id": 17556741424, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnadMA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556741424", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556741424", + "status": "queued", + "conclusion": null, + "created_at": "2023-10-13T10:11:46Z", + "started_at": "2023-10-13T10:11:46Z", + "completed_at": null, + "name": "test", + "steps": [], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556741424", + "labels": ["ubuntu-latest"], + "runner_id": null, + "runner_name": null, + "runner_group_id": null, + "runner_group_name": null + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed.json b/receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed.json new file mode 100644 index 000000000000..4776e7c17929 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed.json @@ -0,0 +1,224 @@ +{ + "event": "workflow_job", + "payload": { + "action": "completed", + "workflow_job": { + "id": 17556730984, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnZ0aA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556730984", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556730984", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T10:11:27Z", + "started_at": "2023-10-13T10:11:34Z", + "completed_at": "2023-10-13T10:11:44Z", + "name": "pre-commit", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T10:11:33.000Z", + "completed_at": "2023-10-13T10:11:35.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T10:11:35.000Z", + "completed_at": "2023-10-13T10:11:36.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-13T10:11:36.000Z", + "completed_at": "2023-10-13T10:11:36.000Z" + }, + { + "name": "Run pip install pre-commit", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T10:11:36.000Z", + "completed_at": "2023-10-13T10:11:42.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T10:11:42.000Z", + "completed_at": "2023-10-13T10:11:42.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2023-10-13T10:11:42.000Z", + "completed_at": "2023-10-13T10:11:42.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 9, + "started_at": "2023-10-13T10:11:44.000Z", + "completed_at": "2023-10-13T10:11:44.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 10, + "started_at": "2023-10-13T10:11:44.000Z", + "completed_at": "2023-10-13T10:11:44.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 11, + "started_at": "2023-10-13T10:11:43.000Z", + "completed_at": "2023-10-13T10:11:43.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556730984", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed_fmt.json b/receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed_fmt.json new file mode 100644 index 000000000000..d60422b3a9b2 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/5_workflow_job_completed_fmt.json @@ -0,0 +1,221 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17556730984, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnZ0aA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556730984", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556730984", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T10:11:27Z", + "started_at": "2023-10-13T10:11:34Z", + "completed_at": "2023-10-13T10:11:44Z", + "name": "pre-commit", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T10:11:33.000Z", + "completed_at": "2023-10-13T10:11:35.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T10:11:35.000Z", + "completed_at": "2023-10-13T10:11:36.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-13T10:11:36.000Z", + "completed_at": "2023-10-13T10:11:36.000Z" + }, + { + "name": "Run pip install pre-commit", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T10:11:36.000Z", + "completed_at": "2023-10-13T10:11:42.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T10:11:42.000Z", + "completed_at": "2023-10-13T10:11:42.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2023-10-13T10:11:42.000Z", + "completed_at": "2023-10-13T10:11:42.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 9, + "started_at": "2023-10-13T10:11:44.000Z", + "completed_at": "2023-10-13T10:11:44.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 10, + "started_at": "2023-10-13T10:11:44.000Z", + "completed_at": "2023-10-13T10:11:44.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 11, + "started_at": "2023-10-13T10:11:43.000Z", + "completed_at": "2023-10-13T10:11:43.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556730984", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/6_workflow_job_in_progress.json b/receiver/githubactionsreceiver/testdata/success/6_workflow_job_in_progress.json new file mode 100644 index 000000000000..0e787776ea86 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/6_workflow_job_in_progress.json @@ -0,0 +1,160 @@ +{ + "event": "workflow_job", + "payload": { + "action": "in_progress", + "workflow_job": { + "id": 17556741424, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnadMA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556741424", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556741424", + "status": "in_progress", + "conclusion": null, + "created_at": "2023-10-13T10:11:46Z", + "started_at": "2023-10-13T10:11:52Z", + "completed_at": null, + "name": "test", + "steps": [ + { + "name": "Set up job", + "status": "in_progress", + "conclusion": null, + "number": 1, + "started_at": "2023-10-13T10:11:52.000Z", + "completed_at": null + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556741424", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/7_workflow_run_in_progress.json b/receiver/githubactionsreceiver/testdata/success/7_workflow_run_in_progress.json new file mode 100644 index 000000000000..40e575815ab5 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/7_workflow_run_in_progress.json @@ -0,0 +1,352 @@ +{ + "event": "workflow_run", + "payload": { + "action": "in_progress", + "workflow_run": { + "id": 6454805877, + "name": "Tests", + "node_id": "WFR_kwLOKdcZe88AAAABgLyFdQ", + "head_branch": "main", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "path": ".github/workflows/tests.yml", + "display_title": "fix: updating readme", + "run_number": 14, + "event": "push", + "status": "in_progress", + "conclusion": null, + "workflow_id": 71922243, + "check_suite_id": 17024118772, + "check_suite_node_id": "CS_kwDOKdcZe88AAAAD9rdv9A", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877", + "pull_requests": [], + "created_at": "2023-10-13T09:30:43Z", + "updated_at": "2023-10-13T10:11:53Z", + "actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 10, + "referenced_workflows": [], + "run_started_at": "2023-10-13T10:11:25Z", + "triggering_actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/jobs", + "logs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/logs", + "check_suite_url": "https://api.github.com/repos/krzko/webhook-testing/check-suites/17024118772", + "artifacts_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/artifacts", + "cancel_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/cancel", + "rerun_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/rerun", + "previous_attempt_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/attempts/4", + "workflow_url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "head_commit": { + "id": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "tree_id": "3b96a448f3efb1b621fe356f6cc65f41c9c0cbe4", + "message": "fix: updating readme", + "timestamp": "2023-10-13T09:30:37Z", + "author": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" }, + "committer": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" } + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + }, + "head_repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + } + }, + "workflow": { + "id": 71922243, + "node_id": "W_kwDOKdcZe84ESXJD", + "name": "Tests", + "path": ".github/workflows/tests.yml", + "state": "active", + "created_at": "2023-10-13T05:05:10.000Z", + "updated_at": "2023-10-13T05:05:10.000Z", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "html_url": "https://github.com/krzko/webhook-testing/blob/main/.github/workflows/tests.yml", + "badge_url": "https://github.com/krzko/webhook-testing/workflows/Tests/badge.svg" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed.json b/receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed.json new file mode 100644 index 000000000000..5813a2d4c24a --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed.json @@ -0,0 +1,352 @@ +{ + "event": "workflow_run", + "payload": { + "action": "completed", + "workflow_run": { + "id": 6454805877, + "name": "Tests", + "node_id": "WFR_kwLOKdcZe88AAAABgLyFdQ", + "head_branch": "main", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "path": ".github/workflows/tests.yml", + "display_title": "fix: updating readme", + "run_number": 14, + "event": "push", + "status": "completed", + "conclusion": "success", + "workflow_id": 71922243, + "check_suite_id": 17024118772, + "check_suite_node_id": "CS_kwDOKdcZe88AAAAD9rdv9A", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877", + "pull_requests": [], + "created_at": "2023-10-13T09:30:43Z", + "updated_at": "2023-10-13T10:12:10Z", + "actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 10, + "referenced_workflows": [], + "run_started_at": "2023-10-13T10:11:25Z", + "triggering_actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/jobs", + "logs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/logs", + "check_suite_url": "https://api.github.com/repos/krzko/webhook-testing/check-suites/17024118772", + "artifacts_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/artifacts", + "cancel_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/cancel", + "rerun_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/rerun", + "previous_attempt_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/attempts/4", + "workflow_url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "head_commit": { + "id": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "tree_id": "3b96a448f3efb1b621fe356f6cc65f41c9c0cbe4", + "message": "fix: updating readme", + "timestamp": "2023-10-13T09:30:37Z", + "author": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" }, + "committer": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" } + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + }, + "head_repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + } + }, + "workflow": { + "id": 71922243, + "node_id": "W_kwDOKdcZe84ESXJD", + "name": "Tests", + "path": ".github/workflows/tests.yml", + "state": "active", + "created_at": "2023-10-13T05:05:10.000Z", + "updated_at": "2023-10-13T05:05:10.000Z", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "html_url": "https://github.com/krzko/webhook-testing/blob/main/.github/workflows/tests.yml", + "badge_url": "https://github.com/krzko/webhook-testing/workflows/Tests/badge.svg" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed_fmt.json b/receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed_fmt.json new file mode 100644 index 000000000000..aa34e6a3a132 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/8_workflow_run_completed_fmt.json @@ -0,0 +1,349 @@ +{ + "action": "completed", + "workflow_run": { + "id": 6454805877, + "name": "Tests", + "node_id": "WFR_kwLOKdcZe88AAAABgLyFdQ", + "head_branch": "main", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "path": ".github/workflows/tests.yml", + "display_title": "fix: updating readme", + "run_number": 14, + "event": "push", + "status": "completed", + "conclusion": "success", + "workflow_id": 71922243, + "check_suite_id": 17024118772, + "check_suite_node_id": "CS_kwDOKdcZe88AAAAD9rdv9A", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877", + "pull_requests": [], + "created_at": "2023-10-13T09:30:43Z", + "updated_at": "2023-10-13T10:12:10Z", + "actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 10, + "referenced_workflows": [], + "run_started_at": "2023-10-13T10:11:25Z", + "triggering_actor": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/jobs", + "logs_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/logs", + "check_suite_url": "https://api.github.com/repos/krzko/webhook-testing/check-suites/17024118772", + "artifacts_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/artifacts", + "cancel_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/cancel", + "rerun_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/rerun", + "previous_attempt_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877/attempts/4", + "workflow_url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "head_commit": { + "id": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "tree_id": "3b96a448f3efb1b621fe356f6cc65f41c9c0cbe4", + "message": "fix: updating readme", + "timestamp": "2023-10-13T09:30:37Z", + "author": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" }, + "committer": { "name": "Kristof Kowalski", "email": "k@ko.wal.ski" } + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + }, + "head_repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments" + } + }, + "workflow": { + "id": 71922243, + "node_id": "W_kwDOKdcZe84ESXJD", + "name": "Tests", + "path": ".github/workflows/tests.yml", + "state": "active", + "created_at": "2023-10-13T05:05:10.000Z", + "updated_at": "2023-10-13T05:05:10.000Z", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/workflows/71922243", + "html_url": "https://github.com/krzko/webhook-testing/blob/main/.github/workflows/tests.yml", + "badge_url": "https://github.com/krzko/webhook-testing/workflows/Tests/badge.svg" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed.json b/receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed.json new file mode 100644 index 000000000000..413ad50b1abf --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed.json @@ -0,0 +1,248 @@ +{ + "event": "workflow_job", + "payload": { + "action": "completed", + "workflow_job": { + "id": 17556741424, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnadMA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556741424", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556741424", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T10:11:46Z", + "started_at": "2023-10-13T10:11:52Z", + "completed_at": "2023-10-13T10:12:08Z", + "name": "test", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T10:11:52.000Z", + "completed_at": "2023-10-13T10:11:54.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T10:11:54.000Z", + "completed_at": "2023-10-13T10:11:54.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-13T10:11:55.000Z", + "completed_at": "2023-10-13T10:11:55.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T10:11:55.000Z", + "completed_at": "2023-10-13T10:12:00.000Z" + }, + { + "name": "Run snok/install-poetry@v1", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T10:12:01.000Z", + "completed_at": "2023-10-13T10:12:05.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2023-10-13T10:12:05.000Z", + "completed_at": "2023-10-13T10:12:05.000Z" + }, + { + "name": "Run pip install pyparsing==2.4.7", + "status": "completed", + "conclusion": "skipped", + "number": 7, + "started_at": "2023-10-13T10:12:05.000Z", + "completed_at": "2023-10-13T10:12:05.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 12, + "started_at": "2023-10-13T10:12:06.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 13, + "started_at": "2023-10-13T10:12:06.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 14, + "started_at": "2023-10-13T10:12:08.000Z", + "completed_at": "2023-10-13T10:12:08.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 16, + "started_at": "2023-10-13T10:12:06.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 17, + "started_at": "2023-10-13T10:12:05.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556741424", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } + } +} diff --git a/receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed_fmt.json b/receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed_fmt.json new file mode 100644 index 000000000000..8b81e56345b7 --- /dev/null +++ b/receiver/githubactionsreceiver/testdata/success/9_workflow_job_completed_fmt.json @@ -0,0 +1,245 @@ +{ + "action": "completed", + "workflow_job": { + "id": 17556741424, + "run_id": 6454805877, + "workflow_name": "Tests", + "head_branch": "main", + "run_url": "https://api.github.com/repos/krzko/webhook-testing/actions/runs/6454805877", + "run_attempt": 10, + "node_id": "CR_kwDOKdcZe88AAAAEFnadMA", + "head_sha": "4d6ee57193c29fc3b23723c386f462287b60bf87", + "url": "https://api.github.com/repos/krzko/webhook-testing/actions/jobs/17556741424", + "html_url": "https://github.com/krzko/webhook-testing/actions/runs/6454805877/job/17556741424", + "status": "completed", + "conclusion": "success", + "created_at": "2023-10-13T10:11:46Z", + "started_at": "2023-10-13T10:11:52Z", + "completed_at": "2023-10-13T10:12:08Z", + "name": "test", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-10-13T10:11:52.000Z", + "completed_at": "2023-10-13T10:11:54.000Z" + }, + { + "name": "Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-10-13T10:11:54.000Z", + "completed_at": "2023-10-13T10:11:54.000Z" + }, + { + "name": "Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2023-10-13T10:11:55.000Z", + "completed_at": "2023-10-13T10:11:55.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2023-10-13T10:11:55.000Z", + "completed_at": "2023-10-13T10:12:00.000Z" + }, + { + "name": "Run snok/install-poetry@v1", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2023-10-13T10:12:01.000Z", + "completed_at": "2023-10-13T10:12:05.000Z" + }, + { + "name": "Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2023-10-13T10:12:05.000Z", + "completed_at": "2023-10-13T10:12:05.000Z" + }, + { + "name": "Run pip install pyparsing==2.4.7", + "status": "completed", + "conclusion": "skipped", + "number": 7, + "started_at": "2023-10-13T10:12:05.000Z", + "completed_at": "2023-10-13T10:12:05.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 12, + "started_at": "2023-10-13T10:12:06.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + }, + { + "name": "Post Run actions/setup-python@v4", + "status": "completed", + "conclusion": "success", + "number": 13, + "started_at": "2023-10-13T10:12:06.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + }, + { + "name": "Post Run actions/checkout@v3", + "status": "completed", + "conclusion": "success", + "number": 14, + "started_at": "2023-10-13T10:12:08.000Z", + "completed_at": "2023-10-13T10:12:08.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 16, + "started_at": "2023-10-13T10:12:06.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + }, + { + "name": "Post Run actions/cache@v3", + "status": "completed", + "conclusion": "success", + "number": 17, + "started_at": "2023-10-13T10:12:05.000Z", + "completed_at": "2023-10-13T10:12:06.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/krzko/webhook-testing/check-runs/17556741424", + "labels": ["ubuntu-latest"], + "runner_id": 2, + "runner_name": "GitHub Actions 2", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 701962619, + "node_id": "R_kgDOKdcZew", + "name": "webhook-testing", + "full_name": "krzko/webhook-testing", + "private": true, + "owner": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/krzko/webhook-testing", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/krzko/webhook-testing", + "forks_url": "https://api.github.com/repos/krzko/webhook-testing/forks", + "keys_url": "https://api.github.com/repos/krzko/webhook-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/krzko/webhook-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/krzko/webhook-testing/teams", + "hooks_url": "https://api.github.com/repos/krzko/webhook-testing/hooks", + "issue_events_url": "https://api.github.com/repos/krzko/webhook-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/krzko/webhook-testing/events", + "assignees_url": "https://api.github.com/repos/krzko/webhook-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/krzko/webhook-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/krzko/webhook-testing/tags", + "blobs_url": "https://api.github.com/repos/krzko/webhook-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/krzko/webhook-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/krzko/webhook-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/krzko/webhook-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/krzko/webhook-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/krzko/webhook-testing/languages", + "stargazers_url": "https://api.github.com/repos/krzko/webhook-testing/stargazers", + "contributors_url": "https://api.github.com/repos/krzko/webhook-testing/contributors", + "subscribers_url": "https://api.github.com/repos/krzko/webhook-testing/subscribers", + "subscription_url": "https://api.github.com/repos/krzko/webhook-testing/subscription", + "commits_url": "https://api.github.com/repos/krzko/webhook-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/krzko/webhook-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/krzko/webhook-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/krzko/webhook-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/krzko/webhook-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/krzko/webhook-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/krzko/webhook-testing/merges", + "archive_url": "https://api.github.com/repos/krzko/webhook-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/krzko/webhook-testing/downloads", + "issues_url": "https://api.github.com/repos/krzko/webhook-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/krzko/webhook-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/krzko/webhook-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/krzko/webhook-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/krzko/webhook-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/krzko/webhook-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/krzko/webhook-testing/deployments", + "created_at": "2023-10-13T04:54:00Z", + "updated_at": "2023-10-13T05:26:13Z", + "pushed_at": "2023-10-13T09:30:39Z", + "git_url": "git://github.com/krzko/webhook-testing.git", + "ssh_url": "git@github.com:krzko/webhook-testing.git", + "clone_url": "https://github.com/krzko/webhook-testing.git", + "svn_url": "https://github.com/krzko/webhook-testing", + "homepage": null, + "size": 27, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "krzko", + "id": 1499932, + "node_id": "MDQ6VXNlcjE0OTk5MzI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1499932?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/krzko", + "html_url": "https://github.com/krzko", + "followers_url": "https://api.github.com/users/krzko/followers", + "following_url": "https://api.github.com/users/krzko/following{/other_user}", + "gists_url": "https://api.github.com/users/krzko/gists{/gist_id}", + "starred_url": "https://api.github.com/users/krzko/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/krzko/subscriptions", + "organizations_url": "https://api.github.com/users/krzko/orgs", + "repos_url": "https://api.github.com/users/krzko/repos", + "events_url": "https://api.github.com/users/krzko/events{/privacy}", + "received_events_url": "https://api.github.com/users/krzko/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/receiver/githubactionsreceiver/trace_receiver.go b/receiver/githubactionsreceiver/trace_receiver.go new file mode 100644 index 000000000000..ff44e4c73213 --- /dev/null +++ b/receiver/githubactionsreceiver/trace_receiver.go @@ -0,0 +1,572 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package githubactionsreceiver + +import ( + "context" + "crypto/hmac" + "crypto/sha1" + "crypto/sha256" + "encoding/hex" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "strings" + "sync" + "time" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/consumer" + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/ptrace" + "go.opentelemetry.io/collector/receiver" + "go.opentelemetry.io/collector/receiver/receiverhelper" + "go.uber.org/zap" +) + +var errMissingEndpoint = errors.New("missing a receiver endpoint") + +type githubActionsReceiver struct { + nextConsumer consumer.Traces + config *Config + server *http.Server + shutdownWG sync.WaitGroup + createSettings receiver.CreateSettings + logger *zap.Logger + jsonUnmarshaler *jsonTracesUnmarshaler + obsrecv *receiverhelper.ObsReport +} + +type jsonTracesUnmarshaler struct { + logger *zap.Logger +} + +func (j *jsonTracesUnmarshaler) UnmarshalTraces(blob []byte, config *Config) (ptrace.Traces, error) { + var event map[string]json.RawMessage + if err := json.Unmarshal(blob, &event); err != nil { + j.logger.Error("Failed to unmarshal blob", zap.Error(err)) + return ptrace.Traces{}, err + } + + var traces ptrace.Traces + if _, ok := event["workflow_job"]; ok { + var jobEvent WorkflowJobEvent + err := json.Unmarshal(blob, &jobEvent) + if err != nil { + j.logger.Error("Failed to unmarshal job event", zap.Error(err)) + return ptrace.Traces{}, err + } + j.logger.Info("Unmarshalling WorkflowJobEvent") + traces, err = eventToTraces(&jobEvent, config, j.logger) + if err != nil { + j.logger.Error("Failed to convert event to traces", zap.Error(err)) + return ptrace.Traces{}, err + } + } else if _, ok := event["workflow_run"]; ok { + var runEvent WorkflowRunEvent + err := json.Unmarshal(blob, &runEvent) + if err != nil { + j.logger.Error("Failed to unmarshal run event", zap.Error(err)) + return ptrace.Traces{}, err + } + j.logger.Info("Unmarshalling WorkflowRunEvent") + traces, err = eventToTraces(&runEvent, config, j.logger) + if err != nil { + j.logger.Error("Failed to convert event to traces", zap.Error(err)) + return ptrace.Traces{}, err + } + } else { + j.logger.Warn("Unknown event type") + return ptrace.Traces{}, fmt.Errorf("unknown event type") + } + + return traces, nil +} + +func eventToTraces(event interface{}, config *Config, logger *zap.Logger) (ptrace.Traces, error) { + logger.Info("Determining event") + traces := ptrace.NewTraces() + resourceSpans := traces.ResourceSpans().AppendEmpty() + scopeSpans := resourceSpans.ScopeSpans().AppendEmpty() + + switch e := event.(type) { + case *WorkflowJobEvent: + logger.Info("Processing WorkflowJobEvent") + jobResource := resourceSpans.Resource() + createResourceAttributes(jobResource, e, config, logger) + traceID, err := generateTraceID(e.WorkflowJob.RunID, e.WorkflowJob.RunAttempt) + if err != nil { + logger.Error("Failed to generate trace ID", zap.Error(err)) + return traces, fmt.Errorf("failed to generate trace ID") + } + if e.WorkflowJob.Status == "completed" { + parentSpanID := createParentSpan(scopeSpans, e.WorkflowJob.Steps, e.WorkflowJob, traceID, logger) + processSteps(scopeSpans, e.WorkflowJob.Steps, e.WorkflowJob, traceID, parentSpanID, logger) + } + case *WorkflowRunEvent: + logger.Info("Processing WorkflowRunEvent") + runResource := resourceSpans.Resource() + traceID, err := generateTraceID(e.WorkflowRun.ID, e.WorkflowRun.RunAttempt) + if err != nil { + logger.Error("Failed to generate trace ID", zap.Error(err)) + return traces, fmt.Errorf("failed to generate trace ID") + } + if e.WorkflowRun.Status == "completed" { + createResourceAttributes(runResource, e, config, logger) + createRootSpan(resourceSpans, e, traceID, logger) + } + default: + logger.Error("unknown event type, dropping payload") + return ptrace.Traces{}, fmt.Errorf("unknown event type") + } + + return traces, nil +} + +func createParentSpan(scopeSpans ptrace.ScopeSpans, steps []Step, job WorkflowJob, traceID pcommon.TraceID, logger *zap.Logger) pcommon.SpanID { + logger.Info("Creating parent span", zap.String("name", job.Name)) + span := scopeSpans.Spans().AppendEmpty() + span.SetTraceID(traceID) + + parentSpanID, _ := generateParentSpanID(job.RunID, job.RunAttempt) + span.SetParentSpanID(parentSpanID) + + jobSpanID, _ := generateJobSpanID(job.ID, job.RunAttempt, job.Name) + span.SetSpanID(jobSpanID) + + span.SetName(job.Name) + span.SetKind(ptrace.SpanKindServer) + if len(steps) > 0 { + setSpanTimes(span, steps[0].StartedAt, steps[len(steps)-1].CompletedAt) + } else { + logger.Warn("No steps found, defaulting to job times") + setSpanTimes(span, job.CreatedAt, job.CompletedAt) + } + + allSuccessful := true + anyFailure := false + for _, step := range steps { + if step.Status != "completed" || step.Conclusion != "success" { + allSuccessful = false + } + if step.Conclusion == "failure" { + anyFailure = true + break + } + } + + if anyFailure { + span.Status().SetCode(ptrace.StatusCodeError) + } else if allSuccessful { + span.Status().SetCode(ptrace.StatusCodeOk) + } else { + span.Status().SetCode(ptrace.StatusCodeUnset) + } + + span.Status().SetMessage(job.Conclusion) + + return span.SpanID() +} + +func createResourceAttributes(resource pcommon.Resource, event interface{}, config *Config, logger *zap.Logger) { + attrs := resource.Attributes() + + switch e := event.(type) { + case *WorkflowJobEvent: + serviceName := generateServiceName(config, e.Repository.FullName) + + attrs.PutStr("service.name", serviceName) + + attrs.PutStr("ci.system", "github") + + attrs.PutStr("ci.actor.login", e.Repository.Owner.Login) + attrs.PutStr("ci.actor.sender", e.Sender.Login) + + attrs.PutStr("ci.github.html_url", e.WorkflowJob.HTMLURL) + attrs.PutStr("ci.github.job", e.WorkflowJob.Name) + attrs.PutInt("ci.github.run_id", e.WorkflowJob.RunID) + attrs.PutInt("ci.github.run_attempt", int64(e.WorkflowJob.RunAttempt)) + + attrs.PutStr("ci.github.runner.group_name", e.WorkflowJob.RunnerGroupName) + attrs.PutStr("ci.github.runner.name", e.WorkflowJob.RunnerName) + + attrs.PutStr("ci.github.workflow", e.WorkflowJob.WorkflowName) + + attrs.PutStr("scm.system", "git") + attrs.PutStr("scm.git.branch", e.WorkflowJob.HeadBranch) + attrs.PutStr("scm.git.sha", e.WorkflowJob.HeadSha) + attrs.PutStr("scm.git.repo", e.Repository.FullName) + + case *WorkflowRunEvent: + serviceName := generateServiceName(config, e.Repository.FullName) + + attrs.PutStr("service.name", serviceName) + + attrs.PutStr("ci.system", "github") + + attrs.PutStr("ci.github.actor.login", e.WorkflowRun.Actor.Login) + attrs.PutStr("ci.github.actor.sender", e.Sender.Login) + attrs.PutStr("ci.github.actor.triggering", e.WorkflowRun.TriggeringActor.Login) + + attrs.PutStr("ci.github.display_title", e.WorkflowRun.DisplayTitle) + attrs.PutStr("ci.github.html_url", e.WorkflowRun.HTMLURL) + + if e.WorkflowRun.PreviousAttemptURL != "" { + attrs.PutStr("ci.github.previous_attempt_url", e.WorkflowRun.PreviousAttemptURL) + } + + attrs.PutInt("ci.github.run_id", e.WorkflowRun.ID) + attrs.PutInt("ci.github.run_attempt", int64(e.WorkflowRun.RunAttempt)) + + attrs.PutStr("ci.github.workflow", e.WorkflowRun.Name) + attrs.PutStr("ci.github.workflow_path", e.WorkflowRun.Path) + + attrs.PutStr("scm.system", "git") + attrs.PutStr("scm.git.branch", e.WorkflowRun.HeadBranch) + attrs.PutStr("scm.git.sha", e.WorkflowRun.HeadSha) + + if len(e.WorkflowRun.PullRequests) > 0 { + var prUrls []string + for _, pr := range e.WorkflowRun.PullRequests { + prUrls = append(prUrls, convertPRURL(pr.URL)) + } + attrs.PutStr("scm.git.pull_requests.url", strings.Join(prUrls, ";")) + } + + attrs.PutStr("scm.git.repo", e.Repository.FullName) + + default: + logger.Error("unknown event type") + } +} + +func checkDuplicateStepNames(steps []Step) map[string]int { + nameCount := make(map[string]int) + for _, step := range steps { + nameCount[step.Name]++ + } + return nameCount +} + +func convertPRURL(apiURL string) string { + apiURL = strings.Replace(apiURL, "/repos", "", 1) + apiURL = strings.Replace(apiURL, "/pulls", "/pull", 1) + return strings.Replace(apiURL, "api.", "", 1) +} + +func createRootSpan(resourceSpans ptrace.ResourceSpans, event *WorkflowRunEvent, traceID pcommon.TraceID, logger *zap.Logger) (pcommon.SpanID, error) { + logger.Info("Creating root parent span", zap.String("name", event.WorkflowRun.Name)) + scopeSpans := resourceSpans.ScopeSpans().AppendEmpty() + span := scopeSpans.Spans().AppendEmpty() + + rootSpanID, err := generateParentSpanID(event.WorkflowRun.ID, event.WorkflowRun.RunAttempt) + if err != nil { + logger.Error("Failed to generate root span ID", zap.Error(err)) + return pcommon.SpanID{}, err + } + + span.SetTraceID(traceID) + span.SetSpanID(rootSpanID) + span.SetName(event.WorkflowRun.Name) + span.SetKind(ptrace.SpanKindServer) + setSpanTimes(span, event.WorkflowRun.RunStartedAt, event.WorkflowRun.UpdatedAt) + + switch event.WorkflowRun.Conclusion { + case "success": + span.Status().SetCode(ptrace.StatusCodeOk) + case "failure": + span.Status().SetCode(ptrace.StatusCodeError) + default: + span.Status().SetCode(ptrace.StatusCodeUnset) + } + + span.Status().SetMessage(event.WorkflowRun.Conclusion) + + return rootSpanID, nil +} + +func createSpan(scopeSpans ptrace.ScopeSpans, step Step, job WorkflowJob, traceID pcommon.TraceID, parentSpanID pcommon.SpanID, logger *zap.Logger, stepNumber ...int) pcommon.SpanID { + logger.Info("Processing span", zap.String("step_name", step.Name)) + span := scopeSpans.Spans().AppendEmpty() + span.SetTraceID(traceID) + span.SetParentSpanID(parentSpanID) + + var spanID pcommon.SpanID + if len(stepNumber) > 0 && stepNumber[0] > 0 { + spanID, _ = generateStepSpanID(job.RunID, job.RunAttempt, job.Name, step.Name, stepNumber[0]) + } else { + spanID, _ = generateStepSpanID(job.RunID, job.RunAttempt, job.Name, step.Name) + } + span.SetSpanID(spanID) + + setSpanTimes(span, step.StartedAt, step.CompletedAt) + span.SetName(step.Name) + span.SetKind(ptrace.SpanKindServer) + + switch step.Conclusion { + case "success": + span.Status().SetCode(ptrace.StatusCodeOk) + case "failure": + span.Status().SetCode(ptrace.StatusCodeError) + default: + span.Status().SetCode(ptrace.StatusCodeUnset) + } + + span.Status().SetMessage(step.Conclusion) + + return span.SpanID() +} + +func generateTraceID(runID int64, runAttempt int) (pcommon.TraceID, error) { + input := fmt.Sprintf("%d%dt", runID, runAttempt) + hash := sha256.Sum256([]byte(input)) + traceIDHex := hex.EncodeToString(hash[:]) + + var traceID pcommon.TraceID + _, err := hex.Decode(traceID[:], []byte(traceIDHex[:32])) + if err != nil { + return pcommon.TraceID{}, err + } + + return traceID, nil +} + +func generateJobSpanID(runID int64, runAttempt int, job string) (pcommon.SpanID, error) { + input := fmt.Sprintf("%d%d%s", runID, runAttempt, job) + hash := sha256.Sum256([]byte(input)) + spanIDHex := hex.EncodeToString(hash[:]) + + var spanID pcommon.SpanID + _, err := hex.Decode(spanID[:], []byte(spanIDHex[16:32])) + if err != nil { + return pcommon.SpanID{}, err + } + + return spanID, nil +} + +func generateParentSpanID(runID int64, runAttempt int) (pcommon.SpanID, error) { + input := fmt.Sprintf("%d%ds", runID, runAttempt) + hash := sha256.Sum256([]byte(input)) + spanIDHex := hex.EncodeToString(hash[:]) + + var spanID pcommon.SpanID + _, err := hex.Decode(spanID[:], []byte(spanIDHex[16:32])) + if err != nil { + return pcommon.SpanID{}, err + } + + return spanID, nil +} + +func generateServiceName(config *Config, fullName string) string { + if config.CustomServiceName != "" { + return config.CustomServiceName + } + formattedName := strings.ToLower(strings.ReplaceAll(strings.ReplaceAll(fullName, "/", "-"), "_", "-")) + return fmt.Sprintf("%s%s%s", config.ServiceNamePrefix, formattedName, config.ServiceNameSuffix) +} + +// func generateSpanID() pcommon.SpanID { +// var spanID pcommon.SpanID +// binary.Read(rand.Reader, binary.BigEndian, &spanID) +// return spanID +// } + +func generateStepSpanID(runID int64, runAttempt int, jobName, stepName string, stepNumber ...int) (pcommon.SpanID, error) { + var input string + if len(stepNumber) > 0 && stepNumber[0] > 0 { + input = fmt.Sprintf("%d%d%s%s%d", runID, runAttempt, jobName, stepName, stepNumber[0]) + } else { + input = fmt.Sprintf("%d%d%s%s", runID, runAttempt, jobName, stepName) + } + hash := sha256.Sum256([]byte(input)) + spanIDHex := hex.EncodeToString(hash[:]) + + var spanID pcommon.SpanID + _, err := hex.Decode(spanID[:], []byte(spanIDHex[16:32])) + if err != nil { + return pcommon.SpanID{}, err + } + + return spanID, nil +} + +func processSteps(scopeSpans ptrace.ScopeSpans, steps []Step, job WorkflowJob, traceID pcommon.TraceID, parentSpanID pcommon.SpanID, logger *zap.Logger) { + nameCount := checkDuplicateStepNames(steps) + for index, step := range steps { + if nameCount[step.Name] > 1 { + createSpan(scopeSpans, step, job, traceID, parentSpanID, logger, index+1) // Pass step number if duplicate names exist + } else { + createSpan(scopeSpans, step, job, traceID, parentSpanID, logger) + } + } +} + +func setSpanTimes(span ptrace.Span, start, end time.Time) { + span.SetStartTimestamp(pcommon.NewTimestampFromTime(start)) + span.SetEndTimestamp(pcommon.NewTimestampFromTime(end)) +} + +func validateSignatureSHA256(secret string, signatureHeader string, body []byte, logger *zap.Logger) bool { + if signatureHeader == "" || len(signatureHeader) < 7 { + logger.Debug("Unauthorized - No Signature Header") + return false + } + receivedSig := signatureHeader[7:] + computedHash := hmac.New(sha256.New, []byte(secret)) + computedHash.Write(body) + expectedSig := hex.EncodeToString(computedHash.Sum(nil)) + + logger.Info("Debugging Signatures", zap.String("Received", receivedSig), zap.String("Computed", expectedSig)) + + return hmac.Equal([]byte(expectedSig), []byte(receivedSig)) +} + +func validateSignatureSHA1(secret string, signatureHeader string, body []byte, logger *zap.Logger) bool { + if signatureHeader == "" { + logger.Debug("Unauthorized - No Signature Header") + return false + } + receivedSig := signatureHeader[5:] // Assume "sha1=" prefix + computedHash := hmac.New(sha1.New, []byte(secret)) + computedHash.Write(body) + expectedSig := hex.EncodeToString(computedHash.Sum(nil)) + + logger.Info("Debugging Signatures", zap.String("Received", receivedSig), zap.String("Computed", expectedSig)) + + return hmac.Equal([]byte(expectedSig), []byte(receivedSig)) +} + +func newTracesReceiver( + params receiver.CreateSettings, + config *Config, + nextConsumer consumer.Traces, +) (*githubActionsReceiver, error) { + if nextConsumer == nil { + return nil, component.ErrNilNextConsumer + } + + if config.Endpoint == "" { + return nil, errMissingEndpoint + } + + transport := "http" + if config.TLSSetting != nil { + transport = "https" + } + + obsrecv, err := receiverhelper.NewObsReport(receiverhelper.ObsReportSettings{ + ReceiverID: params.ID, + Transport: transport, + ReceiverCreateSettings: params, + }) + + if err != nil { + return nil, err + } + + gar := &githubActionsReceiver{ + nextConsumer: nextConsumer, + config: config, + createSettings: params, + logger: params.Logger, + jsonUnmarshaler: &jsonTracesUnmarshaler{ + logger: params.Logger, + }, + obsrecv: obsrecv, + } + + return gar, nil +} + +func (gar *githubActionsReceiver) Start(ctx context.Context, host component.Host) error { + endpint := fmt.Sprintf("%s%s", gar.config.Endpoint, gar.config.Path) + gar.logger.Info("Starting GithubActions server", zap.String("endpoint", endpint)) + gar.server = &http.Server{ + Addr: gar.config.HTTPServerSettings.Endpoint, + Handler: gar, + } + + gar.shutdownWG.Add(1) + go func() { + defer gar.shutdownWG.Done() + if err := gar.server.ListenAndServe(); err != http.ErrServerClosed { + host.ReportFatalError(err) + } + }() + + return nil +} + +func (gar *githubActionsReceiver) Shutdown(ctx context.Context) error { + var err error + if gar.server != nil { + err = gar.server.Close() + } + gar.shutdownWG.Wait() + return err +} + +func (gar *githubActionsReceiver) ServeHTTP(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + userAgent := r.Header.Get("User-Agent") + if !strings.HasPrefix(userAgent, "GitHub-Hookshot") { + http.Error(w, "Forbidden", http.StatusForbidden) + return + } + + if r.URL.Path != gar.config.Path { + http.Error(w, "Not found", http.StatusNotFound) + return + } + + defer r.Body.Close() + + slurp, err := io.ReadAll(r.Body) + if err != nil { + http.Error(w, "Failed to read request body", http.StatusInternalServerError) + return + } + + // Validate the request if Secret is set in the configuration + if gar.config.Secret != "" { + signatureSHA256 := r.Header.Get("X-Hub-Signature-256") + if signatureSHA256 != "" && !validateSignatureSHA256(gar.config.Secret, signatureSHA256, slurp, gar.logger) { + gar.logger.Debug("Unauthorized - Signature Mismatch SHA256") + http.Error(w, "Unauthorized", http.StatusUnauthorized) + return + } else { + signatureSHA1 := r.Header.Get("X-Hub-Signature") + if signatureSHA1 != "" && !validateSignatureSHA1(gar.config.Secret, signatureSHA1, slurp, gar.logger) { + gar.logger.Debug("Unauthorized - Signature Mismatch SHA1") + http.Error(w, "Unauthorized", http.StatusUnauthorized) + return + } + } + } + + gar.logger.Debug("Received request", zap.ByteString("payload", slurp)) + + td, err := gar.jsonUnmarshaler.UnmarshalTraces(slurp, gar.config) + if err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + gar.logger.Info("Unmarshaled spans", zap.Int("#spans", td.SpanCount())) + + // Pass the traces to the nextConsumer + consumerErr := gar.nextConsumer.ConsumeTraces(ctx, td) + if consumerErr != nil { + gar.logger.Error("Failed to process traces", zap.Error(consumerErr)) + http.Error(w, "Failed to process traces", http.StatusInternalServerError) + return + } + + w.WriteHeader(http.StatusAccepted) +} diff --git a/receiver/githubactionsreceiver/trace_receiver_test.go b/receiver/githubactionsreceiver/trace_receiver_test.go new file mode 100644 index 000000000000..216f564ced98 --- /dev/null +++ b/receiver/githubactionsreceiver/trace_receiver_test.go @@ -0,0 +1,60 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package githubactionsreceiver + +import ( + "testing" + + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/config/confighttp" + "go.opentelemetry.io/collector/consumer" + "go.opentelemetry.io/collector/consumer/consumertest" + "go.opentelemetry.io/collector/receiver/receivertest" +) + +func TestCreateNewTracesReceiver(t *testing.T) { + defaultConfig := createDefaultConfig().(*Config) + + tests := []struct { + desc string + config Config + consumer consumer.Traces + err error + }{ + { + desc: "Default config succeeds", + config: *defaultConfig, + consumer: consumertest.NewNop(), + err: nil, + }, + { + desc: "User defined config success", + config: Config{ + HTTPServerSettings: confighttp.HTTPServerSettings{ + Endpoint: "localhost:8080", + }, + Secret: "mysecret", + }, + consumer: consumertest.NewNop(), + }, + { + desc: "Missing consumer fails", + config: *defaultConfig, + err: component.ErrNilNextConsumer, + }, + } + + for _, test := range tests { + t.Run(test.desc, func(t *testing.T) { + rec, err := newTracesReceiver(receivertest.NewNopCreateSettings(), &test.config, test.consumer) + if test.err == nil { + require.NotNil(t, rec) + } else { + require.ErrorIs(t, err, test.err) + require.Nil(t, rec) + } + }) + } +} diff --git a/receiver/githubactionsreceiver/types.go b/receiver/githubactionsreceiver/types.go new file mode 100644 index 000000000000..6d7242cd9e13 --- /dev/null +++ b/receiver/githubactionsreceiver/types.go @@ -0,0 +1,408 @@ +package githubactionsreceiver + +import "time" + +type WorkflowJobEvent struct { + Action string `json:"action"` + WorkflowJob WorkflowJob `json:"workflow_job"` + Repository Repository `json:"repository"` + Organization Organization `json:"organization"` + Sender Sender `json:"sender"` + Steps []Step `json:"steps"` +} + +type WorkflowRunEvent struct { + Action string `json:"action"` + WorkflowRun WorkflowRun `json:"workflow_run"` + Workflow Workflow `json:"workflow"` + Repository Repository `json:"repository"` + Organization Organization `json:"organization"` + Enterprise Enterprise `json:"enterprise,omitempty"` + Sender Sender `json:"sender"` + Installation Installation `json:"installation,omitempty"` +} + +type Actor struct { + Login string `json:"login,omitempty"` + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + GravatarID string `json:"gravatar_id,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + FollowersURL string `json:"followers_url,omitempty"` + FollowingURL string `json:"following_url,omitempty"` + GistsURL string `json:"gists_url,omitempty"` + StarredURL string `json:"starred_url,omitempty"` + SubscriptionsURL string `json:"subscriptions_url,omitempty"` + OrganizationsURL string `json:"organizations_url,omitempty"` + ReposURL string `json:"repos_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + ReceivedEventsURL string `json:"received_events_url,omitempty"` + Type string `json:"type,omitempty"` + SiteAdmin bool `json:"site_admin,omitempty"` +} + +type Author struct { + Name string `json:"name,omitempty"` + Email string `json:"email,omitempty"` +} + +type Base struct { + Ref string `json:"ref,omitempty"` + Sha string `json:"sha,omitempty"` + Repo Repo `json:"repo,omitempty"` +} + +type Committer struct { + Name string `json:"name,omitempty"` + Email string `json:"email,omitempty"` +} + +type Enterprise struct { + ID int `json:"id,omitempty"` + Slug string `json:"slug,omitempty"` + Name string `json:"name,omitempty"` + NodeID string `json:"node_id,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + Description string `json:"description,omitempty"` + WebsiteURL string `json:"website_url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + UpdatedAt time.Time `json:"updated_at,omitempty"` +} + +type HeadCommit struct { + ID string `json:"id,omitempty"` + TreeID string `json:"tree_id,omitempty"` + Message string `json:"message,omitempty"` + Timestamp time.Time `json:"timestamp,omitempty"` + Author Author `json:"author,omitempty"` + Committer Committer `json:"committer,omitempty"` +} + +type Head struct { + Ref string `json:"ref,omitempty"` + Sha string `json:"sha,omitempty"` + Repo Repo `json:"repo,omitempty"` +} + +type HeadRepository struct { + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + Name string `json:"name,omitempty"` + FullName string `json:"full_name,omitempty"` + Private bool `json:"private,omitempty"` + Owner Owner `json:"owner,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + Description string `json:"description,omitempty"` + Fork bool `json:"fork,omitempty"` + URL string `json:"url,omitempty"` + ForksURL string `json:"forks_url,omitempty"` + KeysURL string `json:"keys_url,omitempty"` + CollaboratorsURL string `json:"collaborators_url,omitempty"` + TeamsURL string `json:"teams_url,omitempty"` + HooksURL string `json:"hooks_url,omitempty"` + IssueEventsURL string `json:"issue_events_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + AssigneesURL string `json:"assignees_url,omitempty"` + BranchesURL string `json:"branches_url,omitempty"` + TagsURL string `json:"tags_url,omitempty"` + BlobsURL string `json:"blobs_url,omitempty"` + GitTagsURL string `json:"git_tags_url,omitempty"` + GitRefsURL string `json:"git_refs_url,omitempty"` + TreesURL string `json:"trees_url,omitempty"` + StatusesURL string `json:"statuses_url,omitempty"` + LanguagesURL string `json:"languages_url,omitempty"` + StargazersURL string `json:"stargazers_url,omitempty"` + ContributorsURL string `json:"contributors_url,omitempty"` + SubscribersURL string `json:"subscribers_url,omitempty"` + SubscriptionURL string `json:"subscription_url,omitempty"` + CommitsURL string `json:"commits_url,omitempty"` + GitCommitsURL string `json:"git_commits_url,omitempty"` + CommentsURL string `json:"comments_url,omitempty"` + IssueCommentURL string `json:"issue_comment_url,omitempty"` + ContentsURL string `json:"contents_url,omitempty"` + CompareURL string `json:"compare_url,omitempty"` + MergesURL string `json:"merges_url,omitempty"` + ArchiveURL string `json:"archive_url,omitempty"` + DownloadsURL string `json:"downloads_url,omitempty"` + IssuesURL string `json:"issues_url,omitempty"` + PullsURL string `json:"pulls_url,omitempty"` + MilestonesURL string `json:"milestones_url,omitempty"` + NotificationsURL string `json:"notifications_url,omitempty"` + LabelsURL string `json:"labels_url,omitempty"` + ReleasesURL string `json:"releases_url,omitempty"` + DeploymentsURL string `json:"deployments_url,omitempty"` +} + +type Installation struct { + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` +} + +type Organization struct { + Login string `json:"login,omitempty"` + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + URL string `json:"url,omitempty"` + ReposURL string `json:"repos_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + HooksURL string `json:"hooks_url,omitempty"` + IssuesURL string `json:"issues_url,omitempty"` + MembersURL string `json:"members_url,omitempty"` + PublicMembersURL string `json:"public_members_url,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + Description string `json:"description,omitempty"` +} + +type Owner struct { + Login string `json:"login,omitempty"` + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + GravatarID string `json:"gravatar_id,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + FollowersURL string `json:"followers_url,omitempty"` + FollowingURL string `json:"following_url,omitempty"` + GistsURL string `json:"gists_url,omitempty"` + StarredURL string `json:"starred_url,omitempty"` + SubscriptionsURL string `json:"subscriptions_url,omitempty"` + OrganizationsURL string `json:"organizations_url,omitempty"` + ReposURL string `json:"repos_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + ReceivedEventsURL string `json:"received_events_url,omitempty"` + Type string `json:"type,omitempty"` + SiteAdmin bool `json:"site_admin,omitempty"` +} + +type PullRequests struct { + URL string `json:"url,omitempty"` + ID int `json:"id,omitempty"` + Number int `json:"number,omitempty"` + Head Head `json:"head,omitempty"` + Base Base `json:"base,omitempty"` +} + +type ReferencedWorkflows struct { + Path string `json:"path,omitempty"` + Sha string `json:"sha,omitempty"` + Ref string `json:"ref,omitempty"` +} + +type Repo struct { + ID int `json:"id,omitempty"` + URL string `json:"url,omitempty"` + Name string `json:"name,omitempty"` +} + +type Repository struct { + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + Name string `json:"name,omitempty"` + FullName string `json:"full_name,omitempty"` + Private bool `json:"private,omitempty"` + Owner Owner `json:"owner,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + Description string `json:"description,omitempty"` + Fork bool `json:"fork,omitempty"` + URL string `json:"url,omitempty"` + ForksURL string `json:"forks_url,omitempty"` + KeysURL string `json:"keys_url,omitempty"` + CollaboratorsURL string `json:"collaborators_url,omitempty"` + TeamsURL string `json:"teams_url,omitempty"` + HooksURL string `json:"hooks_url,omitempty"` + IssueEventsURL string `json:"issue_events_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + AssigneesURL string `json:"assignees_url,omitempty"` + BranchesURL string `json:"branches_url,omitempty"` + TagsURL string `json:"tags_url,omitempty"` + BlobsURL string `json:"blobs_url,omitempty"` + GitTagsURL string `json:"git_tags_url,omitempty"` + GitRefsURL string `json:"git_refs_url,omitempty"` + TreesURL string `json:"trees_url,omitempty"` + StatusesURL string `json:"statuses_url,omitempty"` + LanguagesURL string `json:"languages_url,omitempty"` + StargazersURL string `json:"stargazers_url,omitempty"` + ContributorsURL string `json:"contributors_url,omitempty"` + SubscribersURL string `json:"subscribers_url,omitempty"` + SubscriptionURL string `json:"subscription_url,omitempty"` + CommitsURL string `json:"commits_url,omitempty"` + GitCommitsURL string `json:"git_commits_url,omitempty"` + CommentsURL string `json:"comments_url,omitempty"` + IssueCommentURL string `json:"issue_comment_url,omitempty"` + ContentsURL string `json:"contents_url,omitempty"` + CompareURL string `json:"compare_url,omitempty"` + MergesURL string `json:"merges_url,omitempty"` + ArchiveURL string `json:"archive_url,omitempty"` + DownloadsURL string `json:"downloads_url,omitempty"` + IssuesURL string `json:"issues_url,omitempty"` + PullsURL string `json:"pulls_url,omitempty"` + MilestonesURL string `json:"milestones_url,omitempty"` + NotificationsURL string `json:"notifications_url,omitempty"` + LabelsURL string `json:"labels_url,omitempty"` + ReleasesURL string `json:"releases_url,omitempty"` + DeploymentsURL string `json:"deployments_url,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + UpdatedAt time.Time `json:"updated_at,omitempty"` + PushedAt time.Time `json:"pushed_at,omitempty"` + GitURL string `json:"git_url,omitempty"` + SSHURL string `json:"ssh_url,omitempty"` + CloneURL string `json:"clone_url,omitempty"` + SvnURL string `json:"svn_url,omitempty"` + Homepage string `json:"homepage,omitempty"` + Size int `json:"size,omitempty"` + StargazersCount int `json:"stargazers_count,omitempty"` + WatchersCount int `json:"watchers_count,omitempty"` + Language string `json:"language,omitempty"` + HasIssues bool `json:"has_issues,omitempty"` + HasProjects bool `json:"has_projects,omitempty"` + HasDownloads bool `json:"has_downloads,omitempty"` + HasWiki bool `json:"has_wiki,omitempty"` + HasPages bool `json:"has_pages,omitempty"` + HasDiscussions bool `json:"has_discussions,omitempty"` + ForksCount int `json:"forks_count,omitempty"` + MirrorURL string `json:"mirror_url,omitempty"` + Archived bool `json:"archived,omitempty"` + Disabled bool `json:"disabled,omitempty"` + OpenIssuesCount int `json:"open_issues_count,omitempty"` + License string `json:"license,omitempty"` + AllowForking bool `json:"allow_forking,omitempty"` + IsTemplate bool `json:"is_template,omitempty"` + WebCommitSignoffRequired bool `json:"web_commit_signoff_required,omitempty"` + Topics []string `json:"topics,omitempty"` + Visibility string `json:"visibility,omitempty"` + Forks int `json:"forks,omitempty"` + OpenIssues int `json:"open_issues,omitempty"` + Watchers int `json:"watchers,omitempty"` + DefaultBranch string `json:"default_branch,omitempty"` +} + +type Sender struct { + Login string `json:"login,omitempty"` + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + GravatarID string `json:"gravatar_id,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + FollowersURL string `json:"followers_url,omitempty"` + FollowingURL string `json:"following_url,omitempty"` + GistsURL string `json:"gists_url,omitempty"` + StarredURL string `json:"starred_url,omitempty"` + SubscriptionsURL string `json:"subscriptions_url,omitempty"` + OrganizationsURL string `json:"organizations_url,omitempty"` + ReposURL string `json:"repos_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + ReceivedEventsURL string `json:"received_events_url,omitempty"` + Type string `json:"type,omitempty"` + SiteAdmin bool `json:"site_admin,omitempty"` +} + +type Step struct { + Name string `json:"name,omitempty"` + Status string `json:"status,omitempty"` + Conclusion string `json:"conclusion,omitempty"` + Number int `json:"number,omitempty"` + StartedAt time.Time `json:"started_at,omitempty"` + CompletedAt time.Time `json:"completed_at,omitempty"` +} + +type TriggeringActor struct { + Login string `json:"login,omitempty"` + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + GravatarID string `json:"gravatar_id,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + FollowersURL string `json:"followers_url,omitempty"` + FollowingURL string `json:"following_url,omitempty"` + GistsURL string `json:"gists_url,omitempty"` + StarredURL string `json:"starred_url,omitempty"` + SubscriptionsURL string `json:"subscriptions_url,omitempty"` + OrganizationsURL string `json:"organizations_url,omitempty"` + ReposURL string `json:"repos_url,omitempty"` + EventsURL string `json:"events_url,omitempty"` + ReceivedEventsURL string `json:"received_events_url,omitempty"` + Type string `json:"type,omitempty"` + SiteAdmin bool `json:"site_admin,omitempty"` +} + +type Workflow struct { + ID int `json:"id,omitempty"` + NodeID string `json:"node_id,omitempty"` + Name string `json:"name,omitempty"` + Path string `json:"path,omitempty"` + State string `json:"state,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + UpdatedAt time.Time `json:"updated_at,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + BadgeURL string `json:"badge_url,omitempty"` +} + +type WorkflowJob struct { + ID int64 `json:"id"` + RunID int64 `json:"run_id"` + WorkflowName string `json:"workflow_name,omitempty"` + HeadBranch string `json:"head_branch,omitempty"` + RunURL string `json:"run_url,omitempty"` + RunAttempt int `json:"run_attempt"` + NodeID string `json:"node_id,omitempty"` + HeadSha string `json:"head_sha,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + Status string `json:"status,omitempty"` + Conclusion string `json:"conclusion,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + StartedAt time.Time `json:"started_at,omitempty"` + CompletedAt time.Time `json:"completed_at,omitempty"` + Name string `json:"name,omitempty"` + Steps []Step `json:"steps,omitempty"` + CheckRunURL string `json:"check_run_url,omitempty"` + Labels []string `json:"labels,omitempty"` + RunnerID int `json:"runner_id,omitempty"` + RunnerName string `json:"runner_name,omitempty"` + RunnerGroupID int `json:"runner_group_id,omitempty"` + RunnerGroupName string `json:"runner_group_name,omitempty"` +} + +type WorkflowRun struct { + ID int64 `json:"id"` + Name string `json:"name,omitempty"` + NodeID string `json:"node_id,omitempty"` + HeadBranch string `json:"head_branch,omitempty"` + HeadSha string `json:"head_sha,omitempty"` + Path string `json:"path,omitempty"` + DisplayTitle string `json:"display_title,omitempty"` + RunNumber int `json:"run_number,omitempty"` + Event string `json:"event,omitempty"` + Status string `json:"status,omitempty"` + Conclusion string `json:"conclusion,omitempty"` + WorkflowID int `json:"workflow_id,omitempty"` + CheckSuiteID int64 `json:"check_suite_id,omitempty"` + CheckSuiteNodeID string `json:"check_suite_node_id,omitempty"` + URL string `json:"url,omitempty"` + HTMLURL string `json:"html_url,omitempty"` + PullRequests []PullRequests `json:"pull_requests,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + UpdatedAt time.Time `json:"updated_at,omitempty"` + Actor Actor `json:"actor,omitempty"` + RunAttempt int `json:"run_attempt,omitempty"` + ReferencedWorkflows []ReferencedWorkflows `json:"referenced_workflows,omitempty"` + RunStartedAt time.Time `json:"run_started_at,omitempty"` + TriggeringActor TriggeringActor `json:"triggering_actor,omitempty"` + JobsURL string `json:"jobs_url,omitempty"` + LogsURL string `json:"logs_url,omitempty"` + CheckSuiteURL string `json:"check_suite_url,omitempty"` + ArtifactsURL string `json:"artifacts_url,omitempty"` + CancelURL string `json:"cancel_url,omitempty"` + RerunURL string `json:"rerun_url,omitempty"` + PreviousAttemptURL string `json:"previous_attempt_url,omitempty"` + WorkflowURL string `json:"workflow_url,omitempty"` + HeadCommit HeadCommit `json:"head_commit,omitempty"` + Repository Repository `json:"repository,omitempty"` + HeadRepository HeadRepository `json:"head_repository,omitempty"` +}