This commit is contained in:
qwerty287
2024-08-14 21:37:05 +02:00
committed by GitHub
parent acd862cac3
commit bcecbbd398
7 changed files with 23 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ func TestStepLabel(t *testing.T) {
}
func TestTinyPod(t *testing.T) {
expected := `
const expected = `
{
"metadata": {
"name": "wp-01he8bebctabr3kgk0qj36d2me-0",
@@ -149,7 +149,7 @@ func TestTinyPod(t *testing.T) {
}
func TestFullPod(t *testing.T) {
expected := `
const expected = `
{
"metadata": {
"name": "wp-01he8bebctabr3kgk0qj36d2me-0",
@@ -429,7 +429,7 @@ func TestPodPrivilege(t *testing.T) {
}
func TestScratchPod(t *testing.T) {
expected := `
const expected = `
{
"metadata": {
"name": "wp-01he8bebctabr3kgk0qj36d2me-0",
@@ -474,7 +474,7 @@ func TestScratchPod(t *testing.T) {
}
func TestSecrets(t *testing.T) {
expected := `
const expected = `
{
"metadata": {
"name": "wp-3kgk0qj36d2me01he8bebctabr-0",

View File

@@ -172,7 +172,7 @@ func (l *Linter) lintTrusted(config *WorkflowConfig, c *types.Container, area st
if len(c.NetworkMode) != 0 {
errors = append(errors, "Insufficient privileges to use network_mode")
}
if c.Volumes.Volumes != nil && len(c.Volumes.Volumes) != 0 {
if len(c.Volumes.Volumes) != 0 {
errors = append(errors, "Insufficient privileges to use volumes")
}
if len(c.Tmpfs) != 0 {