alamb commented on code in PR #26991:
URL: https://github.com/apache/datafusion/pull/26991#discussion_r4435752311


##########
.github/workflows/agentscan.yml:
##########
@@ -0,0 +1,123 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# On PR open, reopen, or update, check the author's account with AgentScan.
+#
+# For positive agents-like user:
+# 1. Add the "Prolific Author" label and
+# 2. Post this comment once per PR (with links to the policy and account 
report):
+#
+#   Please see our AI policy. AgentScan flagged this account for possible agent
+#   activity. This PR may be closed without notice.
+#
+# How it works
+# A PR signal starts this workflow with permission to label and comment on 
fork PRs.
+# 1. Install `@unveil/identity` (AgentScan's scoring engine) and `@unveil/vk`.
+# 2. Use `@unveil/vk` to fetch the author's public GitHub activity and score it
+#    locally with `@unveil/identity` (e.g. 24/7 activity can suggest 
automation).
+# 3. Label and notify authors classified as "mixed" or "automation".
+name: AgentScan
+
+on:
+  workflow_run:
+    workflows: ["Pull request signal"]
+    types: [requested]
+
+permissions: {}
+
+concurrency:
+  group: agentscan-${{ github.event.workflow_run.head_repository.id }}-${{ 
github.event.workflow_run.head_branch }}
+  cancel-in-progress: false
+
+jobs:
+  scan:
+    if: >-
+      github.repository == 'apache/datafusion' &&
+      github.event.workflow_run.event == 'pull_request'
+    runs-on: ubuntu-slim
+    timeout-minutes: 5
+    permissions:
+      pull-requests: write
+    steps:
+      - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1  # 
v7.1.0
+        with:
+          node-version: "24"
+          package-manager-cache: false
+
+      - name: Install AgentScan's analyzer
+        # Pin both packages so the classification rules do not change between 
runs.

Review Comment:
   I worry about the security implications of running this package



##########
.github/workflows/agentscan.yml:
##########
@@ -0,0 +1,123 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# On PR open, reopen, or update, check the author's account with AgentScan.
+#
+# For positive agents-like user:
+# 1. Add the "Prolific Author" label and
+# 2. Post this comment once per PR (with links to the policy and account 
report):
+#
+#   Please see our AI policy. AgentScan flagged this account for possible agent
+#   activity. This PR may be closed without notice.
+#
+# How it works
+# A PR signal starts this workflow with permission to label and comment on 
fork PRs.
+# 1. Install `@unveil/identity` (AgentScan's scoring engine) and `@unveil/vk`.
+# 2. Use `@unveil/vk` to fetch the author's public GitHub activity and score it
+#    locally with `@unveil/identity` (e.g. 24/7 activity can suggest 
automation).
+# 3. Label and notify authors classified as "mixed" or "automation".
+name: AgentScan
+
+on:
+  workflow_run:
+    workflows: ["Pull request signal"]
+    types: [requested]
+
+permissions: {}
+
+concurrency:
+  group: agentscan-${{ github.event.workflow_run.head_repository.id }}-${{ 
github.event.workflow_run.head_branch }}
+  cancel-in-progress: false
+
+jobs:
+  scan:
+    if: >-
+      github.repository == 'apache/datafusion' &&
+      github.event.workflow_run.event == 'pull_request'
+    runs-on: ubuntu-slim
+    timeout-minutes: 5
+    permissions:
+      pull-requests: write
+    steps:
+      - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1  # 
v7.1.0
+        with:
+          node-version: "24"
+          package-manager-cache: false
+
+      - name: Install AgentScan's analyzer
+        # Pin both packages so the classification rules do not change between 
runs.

Review Comment:
   It seems like nodejs installs it in a different way: 
   
https://github.com/nodejs/node/blob/95f3cf072e83d94ac90616c86a370b250f44a8d7/.github/workflows/contributor-guidance.yml#L77



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to