File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
fetch-licenses :
15
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : write
18
+ pull-requests : write
16
19
17
20
steps :
18
21
- name : Setup Git
19
22
run : |
20
23
git config --global user.name "GitHub Actions"
21
24
git config --global user.email "github-actions[bot]@users.noreply.github.com"
22
-
25
+
23
26
- name : Checkout this repository
24
27
uses : actions/checkout@v4
25
28
37
40
- name : Get date
38
41
id : date
39
42
run : echo "DT_STAMP"=$(date +'%Y-%m-%d %H:%M UTC') >> $GITHUB_ENV
40
-
43
+
41
44
- name : Check for changes
42
45
id : changes
43
46
run : |
54
57
fi
55
58
fi
56
59
echo "HAS_CHANGES"=$has_changes >> $GITHUB_ENV
57
-
60
+
58
61
- name : Run license extraction
59
62
if : ${{ env.HAS_CHANGES == 'true' || github.event.inputs.force_run == 'true' }}
60
63
run : |
66
69
67
70
- name : Create Pull Request
68
71
if : ${{ env.HAS_CHANGES == 'true' || github.event.inputs.force_run == 'true' }}
69
- uses : peter-evans/create-pull-request@v7
72
+ uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
70
73
with :
71
74
token : ${{ secrets.GITHUB_TOKEN }}
72
75
commit-message : Add updated license files
Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
pull_request : {}
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
jobs :
9
12
build :
10
13
strategy :
18
21
go-version : " 1.18.5"
19
22
20
23
- name : golangci-lint
21
- uses : golangci/golangci-lint-action@v6.1.1
24
+ uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
22
25
with :
23
26
version : v1.47.3
24
27
args : --verbose --config .golangci.yaml
Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
pull_request : {}
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
jobs :
9
12
test :
10
13
strategy :
You can’t perform that action at this time.
0 commit comments