Skip to content

Commit 17393bb

Browse files
committed
Workflows: PR EE Acc Test Permissions
1 parent da0f7ec commit 17393bb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pr-acceptance-ee.yml

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# SECURITY ADVISORY
66
# Be careful while making changes to this file.
77
# 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.
811

912
name: pr-acceptance-ee
1013

@@ -21,6 +24,9 @@ on:
2124
- 'CHANGELOG.md'
2225
- 'CONTRIBUTING.md'
2326

27+
# Disable permissions on the GITHUB_TOKEN for all scopes.
28+
permissions: {}
29+
2430
concurrency:
2531
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
2632
cancel-in-progress: true
@@ -35,6 +41,7 @@ jobs:
3541
- uses: actions/checkout@v2
3642
with:
3743
ref: ${{ github.event.pull_request.head.sha }}
44+
persist-credentials: false
3845
# Read the .go-version file and output it for other jobs to use.
3946
- id: go-version
4047
run: echo "::set-output name=go-version::$(cat .go-version)"
@@ -66,6 +73,9 @@ jobs:
6673
# Check out the target project (as opposed to the pull request code).
6774
# Yes, this is intentional. We are using trusted code while working with the GitLab license.
6875
- uses: actions/checkout@v2
76+
with:
77+
ref: ${{ github.event.repository.default_branch }}
78+
persist-credentials: false
6979
- name: Decrypt license
7080
run: |
7181
openssl version
@@ -77,6 +87,7 @@ jobs:
7787
- uses: actions/checkout@v2
7888
with:
7989
ref: ${{ github.event.pull_request.head.sha }}
90+
persist-credentials: false
8091
# Cache the Go modules.
8192
- uses: actions/cache@v2
8293
with:

0 commit comments

Comments
 (0)