Skip to content

chore(deps): Update actions/checkout action to v5 - autoclosed #43

chore(deps): Update actions/checkout action to v5 - autoclosed

chore(deps): Update actions/checkout action to v5 - autoclosed #43

Workflow file for this run

# Copyright 2023 Google 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: review-warning
# Add a comment to potentially risky PRs to emphasize the need for close review.
#
# Assumes a specific case of risk from GitHub Workflows with write permission.
# The language of the comment can be modified, or logic identifying modified
# files moved into the job logic to differentiate messaging.
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- '.github/workflows/release-major-tags.yml'
jobs:
review-warning:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ':warning: This PR changes a file with repository write permission. Review with care.'
})
result-encoding: string