File tree Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 4
4
types :
5
5
- closed
6
6
7
+ permissions :
8
+ contents : read
9
+
7
10
jobs :
8
11
cleanup :
9
12
runs-on : ubuntu-latest
@@ -14,14 +17,14 @@ jobs:
14
17
- name : Cleanup
15
18
run : |
16
19
gh extension install actions/gh-actions-cache
17
-
20
+
18
21
REPO=${{ github.repository }}
19
22
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
20
23
21
24
echo "Fetching list of cache key"
22
25
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
23
26
24
- ## Setting this to not fail the workflow while deleting cache keys.
27
+ ## Setting this to not fail the workflow while deleting cache keys.
25
28
set +e
26
29
echo "Deleting caches..."
27
30
for cacheKey in $cacheKeysForPR
30
33
done
31
34
echo "Done"
32
35
env :
33
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 8
8
pull_request :
9
9
merge_group :
10
10
11
+ permissions :
12
+ contents : read
13
+
11
14
concurrency :
12
15
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13
16
cancel-in-progress : true
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches : [main, master]
6
6
7
+ permissions :
8
+ contents : read
9
+
7
10
jobs :
8
11
enforce-license-compliance :
9
12
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 7
7
description : ' Name of version (ie 23.9.5)'
8
8
required : true
9
9
10
+ permissions :
11
+ contents : read
12
+
10
13
jobs :
11
14
create-release-pr :
12
15
name : Create PR for Release ${{ github.event.inputs.versionName }}
Original file line number Diff line number Diff line change 6
6
- main
7
7
types : [closed]
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
jobs :
10
13
create-release :
11
14
name : Tag Release ${{ github.head_ref }} and Push Docker image to Docker Hub
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Trigger gazebo preview deploy
2
2
3
3
on : pull_request
4
4
5
+ permissions :
6
+ contents : read
7
+
5
8
jobs :
6
9
run :
7
10
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments