File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
# SECURITY ADVISORY
6
6
# Be careful while making changes to this file.
7
7
# See: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
8
+ #
9
+ # We are using "persist-credentials: false" on all checkout actions in this workflow as a
10
+ # precaution.
8
11
9
12
name : pr-acceptance-ee
10
13
21
24
- ' CHANGELOG.md'
22
25
- ' CONTRIBUTING.md'
23
26
27
+ # Disable permissions on the GITHUB_TOKEN for all scopes.
28
+ permissions : {}
29
+
24
30
concurrency :
25
31
group : ${{ github.workflow }}-${{ github.event.pull_request.number }}
26
32
cancel-in-progress : true
35
41
- uses : actions/checkout@v2
36
42
with :
37
43
ref : ${{ github.event.pull_request.head.sha }}
44
+ persist-credentials : false
38
45
# Read the .go-version file and output it for other jobs to use.
39
46
- id : go-version
40
47
run : echo "::set-output name=go-version::$(cat .go-version)"
66
73
# Check out the target project (as opposed to the pull request code).
67
74
# Yes, this is intentional. We are using trusted code while working with the GitLab license.
68
75
- uses : actions/checkout@v2
76
+ with :
77
+ ref : ${{ github.event.repository.default_branch }}
78
+ persist-credentials : false
69
79
- name : Decrypt license
70
80
run : |
71
81
openssl version
77
87
- uses : actions/checkout@v2
78
88
with :
79
89
ref : ${{ github.event.pull_request.head.sha }}
90
+ persist-credentials : false
80
91
# Cache the Go modules.
81
92
- uses : actions/cache@v2
82
93
with :
You can’t perform that action at this time.
0 commit comments