GitLab CI
notify_teams:
image: debian:stable-slim
script:
- apt-get update && apt-get install -y curl ca-certificates
- curl -L "$TEAMS_CLI_TARBALL" -o teams.tar.gz
- tar -xzf teams.tar.gz
- ./teams-*/bin/teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --body "Pipeline passed" --output json
Keep tokens in masked CI variables. For normal message sends, use delegated auth or future bot mode.