def METHOD_NAME(start_line, end_line, supported_entities,
                                                                  old_key_format, expected_key, definition):
    gha_provider = GithubActionProvider(definition, '', [])
    runner = Runner()
    file_path = "mock_path"
    runner.definitions[file_path] = definition
    key1 = runner.get_resource(file_path, old_key_format, supported_entities, start_line, end_line)
    key2 = gha_provider.generate_resource_key(start_line, end_line)
    assert key1 == key2 == expected_key