GitHub Actions
Example job
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Install teams
run: brew install osodevops/tap/teams
- name: Notify
env:
TEAMS_CLI_ACCESS_TOKEN: ${{ secrets.TEAMS_CLI_ACCESS_TOKEN }}
TEAM_ID: ${{ vars.TEAM_ID }}
CHANNEL_ID: ${{ vars.CHANNEL_ID }}
run: |
teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --body "Deploy completed" --output json
Use short-lived tokens and avoid writing Teams message contents to job logs.