Commit 08bd040
authored
ci(permissions): add explicit permissions to build_containers workflow (#33)
Set global permissions to read-all and grant packages write permission
to the docker job to follow the principle of least privilege for
GITHUB_TOKEN.
This restricts the default token permissions to read-only access
globally, with the docker job explicitly granted write access only for
packages (needed to push containers to ghcr.io). This improves the
security posture of the workflow by limiting the scope of what the
GITHUB_TOKEN can do.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>1 parent e18e5e4 commit 08bd040
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
0 commit comments