Skip to content

The Cognito session expires after SDK version updated to V2 #646

The Cognito session expires after SDK version updated to V2

The Cognito session expires after SDK version updated to V2 #646

# This is a basic workflow to help you get started with Actions
name: Notify Comments on PCR
# Controls when the workflow will run
on:
# Triggers the workflow on comment events on closed, pending response issues and closing soon issues
issue_comment:
types: [created]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "notify"
notify:
# The type of runner that the job will run on
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request && (github.event.issue.state == 'closed' || contains(github.event.issue.labels.*.name, 'pending-response') || contains(github.event.issue.labels.*.name, 'closing-soon-if-no-response')) }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Run webhook curl command
env:
WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }}
BODY: ${{ toJson(github.event.comment.body) }}
COMMENT_URL: ${{ github.event.comment.html_url }}
shell: bash
run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"'$COMMENT_URL'", "body":"{}"}'