Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

chore(deps): update plugin org.jetbrains.changelog to v2 #245

chore(deps): update plugin org.jetbrains.changelog to v2

chore(deps): update plugin org.jetbrains.changelog to v2 #245

#
# Copyright 2022 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Security Pipeline
on:
pull_request:
jobs:
SECURITY:
runs-on: ubuntu-latest
steps:
- name: Change to pending status
run: |
curl --request POST \
--url ${{ github.event.pull_request._links.statuses.href}} \
-u '${{ secrets.ACCESS_TOKEN }}' \
--header 'content-type: application/vnd.github+json' \
-o result.json \
--silent \
--data '{
"context": "SECURITY - Check callback",
"state": "pending",
"description": "Waiting to start",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
- name: Dispatch init event
run: |
REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
curl -X POST https://api.github.com/repos/$REPO_NAME/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.ACCESS_TOKEN }} \
--silent \
--data '{
"event_type": "SECURITY",
"client_payload": {
"ref": "${{ github.ref }}",
"ref_name": "${{ github.ref_name }}",
"repository_owner": "${{ github.repository_owner }}",
"repository_name": "${{ github.event.repository.name }}",
"statuses_href": "${{ github.event.pull_request._links.statuses.href}}"
}
}'