Commit ed825d3 1 parent d05a227 commit ed825d3 Copy full SHA for ed825d3
File tree 5 files changed +43
-28
lines changed
5 files changed +43
-28
lines changed Original file line number Diff line number Diff line change 9
9
name : Dependabot
10
10
11
11
on :
12
- pull_request_target :
12
+ pull_request :
13
13
branches :
14
14
- main
15
15
- master
@@ -24,14 +24,20 @@ concurrency:
24
24
25
25
jobs :
26
26
auto-approve-merge :
27
- if : github.actor == 'dependabot[bot]'
27
+ if : github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate [bot]'
28
28
runs-on : ubuntu-latest
29
29
permissions :
30
30
# for hmarr/auto-approve-action to approve PRs
31
31
pull-requests : write
32
32
33
33
steps :
34
- # Github actions bot approve
34
+ - name : Disabled on forks
35
+ if : ${{ github.event.pull_request.head.repo.full_name != github.repository }}
36
+ run : |
37
+ echo 'Can not approve PRs from forks'
38
+ exit 1
39
+
40
+ # GitHub actions bot approve
35
41
- uses : hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
36
42
with :
37
43
github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ concurrency:
20
20
jobs :
21
21
changes :
22
22
runs-on : ubuntu-latest
23
+ permissions :
24
+ contents : read
25
+ pull-requests : read
23
26
24
27
outputs :
25
28
src : ${{ steps.changes.outputs.src}}
@@ -54,21 +57,23 @@ jobs:
54
57
steps :
55
58
- name : Checkout
56
59
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
60
+ with :
61
+ persist-credentials : false
57
62
58
63
- name : Read package.json node and npm engines version
59
64
uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
60
65
id : versions
61
66
with :
62
67
fallbackNode : ' ^20'
63
- fallbackNpm : ' ^9 '
68
+ fallbackNpm : ' ^10 '
64
69
65
70
- name : Set up node ${{ steps.versions.outputs.nodeVersion }}
66
- uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v3
71
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
67
72
with :
68
73
node-version : ${{ steps.versions.outputs.nodeVersion }}
69
74
70
75
- name : Set up npm ${{ steps.versions.outputs.npmVersion }}
71
- run : npm i -g npm@" ${{ steps.versions.outputs.npmVersion }}"
76
+ run : npm i -g ' npm@${{ steps.versions.outputs.npmVersion }}'
72
77
73
78
- name : Install dependencies
74
79
env :
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ concurrency:
20
20
jobs :
21
21
changes :
22
22
runs-on : ubuntu-latest
23
+ permissions :
24
+ contents : read
25
+ pull-requests : read
23
26
24
27
outputs :
25
28
src : ${{ steps.changes.outputs.src}}
@@ -51,21 +54,23 @@ jobs:
51
54
steps :
52
55
- name : Checkout
53
56
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57
+ with :
58
+ persist-credentials : false
54
59
55
60
- name : Read package.json node and npm engines version
56
61
uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
57
62
id : versions
58
63
with :
59
64
fallbackNode : ' ^20'
60
- fallbackNpm : ' ^9 '
65
+ fallbackNpm : ' ^10 '
61
66
62
67
- name : Set up node ${{ steps.versions.outputs.nodeVersion }}
63
- uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v3
68
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
64
69
with :
65
70
node-version : ${{ steps.versions.outputs.nodeVersion }}
66
71
67
72
- name : Set up npm ${{ steps.versions.outputs.npmVersion }}
68
- run : npm i -g npm@" ${{ steps.versions.outputs.npmVersion }}"
73
+ run : npm i -g ' npm@${{ steps.versions.outputs.npmVersion }}'
69
74
70
75
- name : Install dependencies & build
71
76
env :
Original file line number Diff line number Diff line change 14
14
15
15
permissions :
16
16
contents : read
17
- packages : write
18
17
19
18
jobs :
20
19
publish :
21
20
runs-on : ubuntu-latest
22
21
23
22
name : Build and publish to npm
23
+ permissions :
24
+ packages : write
25
+
24
26
steps :
25
27
- name : Check actor permission level
26
28
uses : skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
27
29
with :
28
- require : admin
30
+ require : write
29
31
30
32
- name : Checkout
31
33
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34
+ with :
35
+ persist-credentials : false
32
36
33
37
- name : Read package.json node and npm engines version
34
38
uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
35
39
id : versions
36
40
with :
37
41
fallbackNode : ' ^20'
38
- fallbackNpm : ' ^9 '
42
+ fallbackNpm : ' ^10 '
39
43
40
44
- name : Set up node ${{ steps.versions.outputs.nodeVersion }}
41
- uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v3
45
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
42
46
with :
43
47
node-version : ${{ steps.versions.outputs.nodeVersion }}
44
48
45
49
- name : Set up npm ${{ steps.versions.outputs.npmVersion }}
46
- run : npm i -g npm@" ${{ steps.versions.outputs.npmVersion }}"
50
+ run : npm i -g ' npm@${{ steps.versions.outputs.npmVersion }}'
47
51
48
52
- name : Install dependencies & build
49
53
env :
58
62
npm publish
59
63
env :
60
64
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
61
-
62
- - name : Setup Github Package Registry
63
- uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v3
64
- with :
65
- registry-url : ' https://npm.pkg.github.com'
66
-
67
- - name : Publish package on GPR
68
- run : npm publish
69
- env :
70
- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,12 +11,17 @@ name: REUSE Compliance Check
11
11
12
12
on : [pull_request]
13
13
14
+ permissions :
15
+ contents : read
16
+
14
17
jobs :
15
18
reuse-compliance-check :
16
19
runs-on : ubuntu-latest
17
20
steps :
18
- - name : Checkout
19
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
+ - name : Checkout
22
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23
+ with :
24
+ persist-credentials : false
20
25
21
- - name : REUSE Compliance Check
22
- uses : fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
26
+ - name : REUSE Compliance Check
27
+ uses : fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
You can’t perform that action at this time.
0 commit comments