Skip to content

Commit

Permalink
configure git safe directory (#330)
Browse files Browse the repository at this point in the history
* add safe directory step to lint steps #324

* codegen: configure safe directory #324
  • Loading branch information
jazzyfresh committed Feb 8, 2023
1 parent 51031fc commit 16c3f94
Show file tree
Hide file tree
Showing 261 changed files with 1,579 additions and 34 deletions.
8 changes: 8 additions & 0 deletions provider-ci/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@
],
"additionalProperties": false
}
},
"docsCmd": {
"type": "string",
"default": ""
},
"hybrid": {
"type": "boolean",
"default": false
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -214,6 +217,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -214,6 +217,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -164,6 +167,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -177,6 +180,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -192,6 +195,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
6 changes: 6 additions & 0 deletions provider-ci/providers/auth0/repo/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -214,6 +217,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
6 changes: 6 additions & 0 deletions provider-ci/providers/auth0/repo/.github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -214,6 +217,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -164,6 +167,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -177,6 +180,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -192,6 +195,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
6 changes: 6 additions & 0 deletions provider-ci/providers/azuread/repo/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -216,6 +219,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -216,6 +219,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -166,6 +169,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -179,6 +182,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -194,6 +197,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
6 changes: 6 additions & 0 deletions provider-ci/providers/civo/repo/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -212,6 +215,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
6 changes: 6 additions & 0 deletions provider-ci/providers/civo/repo/.github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -212,6 +215,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -162,6 +165,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down
6 changes: 6 additions & 0 deletions provider-ci/providers/civo/repo/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down Expand Up @@ -175,6 +178,9 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
}}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
Expand Down

0 comments on commit 16c3f94

Please sign in to comment.