Skip to content

Commit cf94d1d

Browse files
TheLinuxGuyCapirca Team
authored and
Capirca Team
committed
Reduce permissions for github action workflow, and prevent accidentally committing credentials to release artifact.
PiperOrigin-RevId: 730978360
1 parent 9b16efd commit cf94d1d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/.git
2+
.git
3+
gha-creds-*.json

.github/workflows/docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Docker Publish
22

3+
permissions:
4+
packages: write
5+
contents: read
6+
37
on:
48
push:
59
branches:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ def/AUTOGEN.net
55
tests/characterization_data/filters_actual
66
tools/new_lint_errors.txt
77

8+
# Exclude secrets
9+
gha-creds-*.json
810

911
# Recommended python excludes
1012
# Byte-compiled / optimized / DLL files

0 commit comments

Comments
 (0)