Skip to content

Does not work with Teams Workflows #1

Description

@deuterium

Microsoft has abolished simple webhooks and now forces everything through Workflows and Power Automate.

Plugin is able to hit the new webhook URLs, but the data is all NULL and fails on the Microsoft Side:

notify-teams:
    image: mobydeck/ci-teams-notification
    settings:
      webhook_url:
        from_secret: teams_webhook_url
      facts: project
      variables: $CI_COMMIT_SHA
      debug: true
    when:
      - status: [success, failure]
        event: [manual, push, tag]

Error:
Action 'Post_card_in_a_chat_or_channel' failed: Request to the Bot framework failed with error: '{"error":{"code":"BadSyntax","message":"Malformed activity payload: Value cannot be null.\r\nParameter name: input"}}'.

Image

Workflow created from Team using the "Send webhook alerts to chat" template.

Testing the webhook URL with curl works fine, so I suspect that the expected json payload has changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions