Skip to content

Commit 251b9bb

Browse files
authored
Merge pull request #48 from cdlib/reduce_workflow_permissions
Add permissions and 3rd-party pinning
2 parents bc5a789 + 93a0e1c commit 251b9bb

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
@@ -14,7 +17,8 @@ jobs:
1417
uses: actions/checkout@v4
1518

1619
- name: Set up Docker Build
17-
uses: docker/[email protected]
20+
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
21+
# update w/ git ls-remote https://github.com/docker/setup-buildx-action.git | grep refs/tags/v
1822

1923
- name: Build current Docker image with tests
2024
run: |

.github/workflows/code-analysis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Code Analysis
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

.github/workflows/compatability-matrix.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Compatibility Matrix
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58

.github/workflows/docker-matrix.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Docker Matrix
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58

@@ -18,7 +21,8 @@ jobs:
1821
uses: actions/checkout@v4
1922

2023
- name: Set up Docker Build
21-
uses: docker/[email protected]
24+
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
25+
# update w/ git ls-remote https://github.com/docker/setup-buildx-action.git | grep refs/tags/v
2226

2327
- name: Build current Docker image with tests
2428
run: |

0 commit comments

Comments
 (0)