Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: skip init+empty secrets
  • Loading branch information
plyr4 committed Nov 29, 2022
commit 61b10dce9f61e5764539734c806a298badccf11d
10 changes: 10 additions & 0 deletions executor/linux/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,16 @@ func (c *client) AssembleBuild(ctx context.Context) error {

// verify the image privileges for all pipeline containers
for _, container := range containers {
// TODO: remove hardcoded reference
if container.Image == "#init" {
continue
}

// ignore secret origins coming from plugins
if container.Empty() {
continue
}

c.Logger.Infof("verifying privileges for container %s", container.Name)

// update the init log with image info
Expand Down