Skip to content

Commit

Permalink
Manual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-elastic committed Jul 1, 2024
1 parent 2df7dc6 commit ec52b9d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/kibana-mitre-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Extract version from file name
id: extract_version
if: steps.changed-attack-files.outputs.added_files == 'true'
if: steps.changed-attack-files.outputs.any_changed == 'true'
env:
ADDED_FILE: ${{ steps.changed-attack-files.outputs.added_files }}
run: |
Expand All @@ -37,15 +37,9 @@ jobs:
run: |
ISSUE_TITLE="Update MITRE ATT&CK to ${{ steps.extract_version.outputs.version }}"
ISSUE_BODY="The detection rules MITRE ATT&CK version has been updated to ${{ steps.extract_version.outputs.version }}. Please update the MITRE ATT&CK version in Kibana accordingly."
curl -X POST \
-H "Authorization: token ${{ secrets.PROTECTIONS_MACHINE_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/elastic/detection-rules/issues \
-d '{
"title": "'"$ISSUE_TITLE"'",
"body": "'"$ISSUE_BODY"'"
}'
echo "Creating issue with title: $ISSUE_TITLE"
echo "Creating issue with body: $ISSUE_BODY"
env:
GITHUB_TOKEN: ${{ secrets.PROTECTIONS_MACHINE_TOKEN }}

0 comments on commit ec52b9d

Please sign in to comment.