Skip to content

ci(deps): Bump the version group across 1 directory with 8 updates #377

ci(deps): Bump the version group across 1 directory with 8 updates

ci(deps): Bump the version group across 1 directory with 8 updates #377

##
# Copyright (C) 2024 Hedera Hashgraph, LLC
#
# 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: "ZXF: Forked PR Closer"
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
defaults:
run:
shell: bash
permissions:
pull-requests: write
contents: read
jobs:
close-pull-request:
name: Close Forked Pull Request
runs-on: ubuntu-22.04
if: ${{ github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install GH CLI
uses: sersoft-gmbh/setup-gh-cli-action@3cb41a4434ca35de4d1c16e00dc7e16d38409494 # v3.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Authorize GH CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: Close Pull Request
run: |
gh pr close ${{ github.event.pull_request.number }} \
--delete-branch \
--comment "This pull request was opened from a forked repository and has been closed in accordance with the repository security policies."