fix: added util for confirming service is not secure proxy #136
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sends an MS Teams notification if a PR is marked Stale | |
# Currently uses MessageCard and not AdaptiveCard. | |
# Changing to AdaptiveCard might require forking & changing the action b/c current action automatically add MessageCard syntax | |
name: Notify Team on stale pull requests | |
on: | |
issues: | |
types: [labeled] | |
pull_request_target: | |
types: [labeled] | |
# Use pull_request_target to handle PR with merge conflicts | |
jobs: | |
notify: | |
name: Send MS notifications for Stale PR/Issue | |
if: ${{ github.event.label.name == 'stale' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Debug GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- uses: actions/checkout@v3 | |
- name: Notify dedicated teams channel | |
uses: skitionek/notify-microsoft-teams@master | |
with: | |
webhook_url: ${{ secrets.MS_TEAMS_HUB_NOTIFICATIONS_WEBHOOK_URI }} | |
# for possible github properties see | |
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads | |
raw: >- | |
{ | |
"@type": "MessageCard", | |
"@context": "http://schema.org/extensions", | |
"themeColor": "0076D7", | |
"summary": "Stale Pull Request", | |
"sections": [{ | |
"activityTitle": "**Stale Pull Request / Issue**", | |
"activitySubtitle": "${{ github.event.issue.title }}${{ github.event.pull_request.title }} from ${{ github.event.issue.user.login }}${{ github.event.pull_request.user.login }}", | |
"activityImage": "${{ github.event.issue.user.avatar_url }}${{ github.event.pull_request.user.avatar_url }}", | |
"facts": [{ | |
"name": "Requested Reviewers", | |
"value": "${{ join(github.event.issue.assignees.*.login, ', ') }}${{ join(github.event.pull_request.requested_reviewers.*.login, ', ') }}" | |
}, { | |
"name": "Mergeable", | |
"value": "${{ github.event.pull_request.mergeable }}" | |
}, { | |
"name": "Labels", | |
"value": "${{ join(github.event.issue.labels.*.name, ', ') }}${{ join(github.event.pull_request.labels.*.name, ', ') }}" | |
}, { | |
"name": "Updated", | |
"value": "${{ github.event.issue.updated_at }}${{ github.event.pull_request.updated_at }}" | |
}, { | |
"name": "Status", | |
"value": "${{ github.event.issue.state }}${{ github.event.pull_request.state }}" | |
}], | |
"markdown": true | |
}], | |
"potentialAction": [{ | |
"@type": "OpenUri", | |
"name": "View the Issue", | |
"targets": [{ | |
"os": "default", | |
"uri": "${{ github.event.issue.html_url }}${{ github.event.pull_request.html_url }}" | |
}] | |
}] | |
} |