Adding missing TI based relevant techniques to detections #11832
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
name: Slash Command Dispatch | |
env: | |
REPO_OWNER: "${{ vars.REPO_OWNER }}" | |
REPO_NAME: "${{ vars.REPO_NAME }}" | |
GITHUB_APPS_ID: "${{ secrets.APPLICATION_ID }}" | |
GITHUB_APPS_KEY: "${{ secrets.APPLICATION_PRIVATE_KEY }}" | |
on: | |
issue_comment: | |
types: [created] | |
pull_request: | |
types: [ closed ] | |
concurrency: | |
group: "GroupName-SlashCommand-${{ github.event.issue.number || github.run_id }}" | |
cancel-in-progress: true | |
jobs: | |
pullRequestStatus: | |
if: ${{ github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork && github.event.issue.pull_request && (contains(github.event.comment.body, '/package') || contains(github.event.comment.body, '/Package')) }} | |
uses: ./.github/workflows/pullRequestStatus.yaml | |
slashCommandDispatch: | |
runs-on: ubuntu-latest | |
needs: pullRequestStatus | |
if: ${{ needs.pullRequestStatus.outputs.isPullRequestMerged == 'False' && !github.event.pull_request.head.repo.fork}} | |
steps: | |
- name: Generate a token | |
id: generate_token | |
uses: actions/create-github-app-token@46e4a501e119d39574a54e53a06c9a705efc55c9 | |
with: | |
app-id: ${{ env.GITHUB_APPS_ID }} | |
private-key: ${{ env.GITHUB_APPS_KEY }} | |
- name: Slash Command Dispatch | |
uses: peter-evans/slash-command-dispatch@67dfeb76529b35541a7c536976cba367cd2d364b | |
env: | |
GeneratedToken: ${{ steps.generate_token.outputs.token }} | |
with: | |
token: ${{ env.GeneratedToken }} | |
permission: none | |
commands: | | |
package | |
Package | |
PACKAGE | |
repository: ${{env.REPO_OWNER}}/${{env.REPO_NAME}} | |
issue-type: pull-request | |
reactions: false | |
addAutoPackageLabel: | |
name: Add Label of Auto-Package | |
needs: slashCommandDispatch | |
if: ${{ success() }} | |
uses: ./.github/workflows/addLabelOnPr.yaml | |
with: | |
labelName: "auto-package" | |
secrets: inherit |