Skip to content

Commit

Permalink
Actionsファイルの変更に対して警告をするactionsを追加する (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
umi1299 authored Nov 28, 2023
1 parent 46243c2 commit e0fd783
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/DANGEROUS-warn-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "[DANGEROUS] Warn if changed actions"

on:
pull_request_target:
paths:
- .github/workflows/**

permissions:
pull-requests: write

jobs:
comment-for-pr:
runs-on: ubuntu-latest
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Comment for PR
run: gh pr comment "$PR_URL" --body "⚠️ Actionsファイルの変更を検知しました。secretsを外部送信するような差分がないか注意!"

0 comments on commit e0fd783

Please sign in to comment.