Skip to content

Commit 3bb2fcd

Browse files
angelcaamaliennae
andauthored
chore: remove unused datastore samples without region tags (GoogleCloudPlatform#4316)
* chore: remove unused datastore folder without region tags * build: clean up dangling CI references to deleted datastore samples * ci: temporarily restore datastore-functions.yaml to bypass zizmor The datastore-functions samples and workflow were deleted in a previous commit. However, the Zizmor scanner fails with an 'invalid input' error when attempting to audit the deleted file from the PR diff. This commit restores a dummy workflow to unblock the CI pipeline until the scanning infrastructure is updated to ignore deleted files. * chore: add missing Apache 2.0 copyright header to dummy workflow * ci: add explicit permissions and trailing newline to satisfy CodeQL --------- Co-authored-by: Jennifer Davis <sigje@google.com>
1 parent efc8d2f commit 3bb2fcd

7 files changed

Lines changed: 10 additions & 587 deletions

File tree

.github/config/nodejs.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"cloud-sql/sqlserver/tedious", // (untested) TypeError: The "config.server" property is required and must be of type string.
8181
"compute", // GoogleError: The resource 'projects/long-door-651/zones/us-central1-a/disks/disk-from-pool-name' was not found
8282
"dataproc", // GoogleError: Error submitting create cluster request: Multiple validation errors
83-
"datastore/functions", // [ERR_REQUIRE_ESM]: require() of ES Module
8483
"dialogflow-cx", // NOT_FOUND: com.google.apps.framework.request.NotFoundException: Agent 'undefined' does not exist
8584
"dlp", // [ERR_REQUIRE_ESM]: require() of ES Module
8685
"document-ai", // [ERR_REQUIRE_ESM]: require() of ES Module

.github/workflows/datastore-functions.yaml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,15 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: datastore-functions
15+
name: Deprecated Workflow
1616
on:
17-
push:
18-
branches:
19-
- main
20-
paths:
21-
- 'datastore/functions/**'
22-
- '.github/workflows/datastore-functions.yaml'
23-
- '.github/workflows/test.yaml'
24-
pull_request:
25-
types:
26-
- opened
27-
- reopened
28-
- synchronize
29-
- labeled
30-
paths:
31-
- 'datastore/functions/**'
32-
- '.github/workflows/datastore-functions.yaml'
33-
- '.github/workflows/test.yaml'
34-
schedule:
35-
- cron: '0 0 * * 0'
17+
workflow_dispatch:
18+
19+
permissions:
20+
contents: read
21+
3622
jobs:
37-
test:
38-
permissions:
39-
contents: 'read'
40-
id-token: 'write'
41-
if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run'
42-
uses: ./.github/workflows/test.yaml
43-
with:
44-
name: 'datastore-functions'
45-
path: 'datastore/functions'
23+
deprecated:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- run: echo "This workflow is deprecated and kept temporarily to bypass zizmor scan."

.github/workflows/utils/workflows.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"datacatalog/snippets",
3434
"datalabeling",
3535
"dataproc",
36-
"datastore/functions",
3736
"dialogflow",
3837
"discoveryengine",
3938
"dlp",

datastore/functions/README.md

Lines changed: 0 additions & 86 deletions
This file was deleted.

datastore/functions/index.js

Lines changed: 0 additions & 139 deletions
This file was deleted.

datastore/functions/package.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)