[CWS] Create policy state from policy instead of rule #3192
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
# Report PR merged event to Datadog | |
name: Report Merged PR | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [closed] | |
permissions: {} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DD_API_KEY: ${{ secrets.REPORT_MERGED_PR_DD_API_KEY }} | |
jobs: | |
if_merged: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Setup Python3 | |
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 | |
with: | |
python-version-file: .python-version | |
cache: "pip" | |
cache-dependency-path: '.dda/version' | |
- name: Install dda | |
uses: ./.github/actions/install-dda | |
with: | |
features: legacy-tasks | |
- name: Send merge event to Datadog | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
run: | | |
dda inv -e github.pr-merge-dd-event-sender -p "$PR_NUMBER" |