-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.05 KB
/
update-gitleaks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: update-gitleaks
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
merge_group:
permissions:
contents: write
pull-requests: write
jobs:
update-gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}
- uses: actions/[email protected]
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
node-version-file: .node-version
cache: npm
- name: Install packages
if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: npm ci
- uses: dev-hato/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true