github-advanced-security[bot] commented on code in PR #41438: URL: https://github.com/apache/beam/pull/41438#discussion_r4620231824
########## .github/workflows/beam_PreCommit_Rust.yml: ########## @@ -0,0 +1,98 @@ +# 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. + +name: PreCommit Rust + +on: + push: + tags: ['v*'] + branches: ['master', 'release-*'] + paths: + - 'model/**' + - 'sdks/rust/**' + - 'buildSrc/src/main/groovy/org/apache/beam/gradle/rust/**' + - 'buildSrc/build.gradle.kts' + - 'release/**' + - '.github/workflows/beam_PreCommit_Rust.yml' + - '.github/actions/setup-environment-action/**' + pull_request: + branches: ['master', 'release-*'] + paths: + - 'model/**' + - 'sdks/rust/**' + - 'buildSrc/src/main/groovy/org/apache/beam/gradle/rust/**' + - 'buildSrc/build.gradle.kts' + - 'release/trigger_all_tests.json' + - '.github/trigger_files/beam_PreCommit_Rust.json' + - '.github/workflows/beam_PreCommit_Rust.yml' + - '.github/actions/setup-environment-action/**' + schedule: + - cron: '30 1/6 * * *' + workflow_dispatch: + +# Setting explicit permissions for the action +permissions: + actions: write + pull-requests: read + checks: read + contents: read + deployments: read + id-token: none + issues: read + discussions: read + packages: read + pages: read + repository-projects: read + security-events: read + statuses: read + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.number || github.event.pull_request.head.label || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.sender.login }}' + cancel-in-progress: true + +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.BEAM_DEVELOCITY_ACCESS_KEY }} + +jobs: + beam_PreCommit_Rust: + name: ${{ matrix.job_name }} + runs-on: [self-hosted, ubuntu-24.04, main] + strategy: + matrix: + job_name: [beam_PreCommit_Rust] + timeout-minutes: 60 + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' || + (github.event_name == 'schedule' && github.repository == 'apache/beam') || + github.event_name == 'workflow_dispatch' + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Setup repository + uses: ./.github/actions/setup-action Review Comment: ## zizmor / use GitHub's dedicated self-repository syntax: use '$/...' instead of './...' [Show more details](https://github.com/apache/beam/security/code-scanning/3538) ########## .github/workflows/beam_PreCommit_Rust.yml: ########## @@ -0,0 +1,98 @@ +# 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. + +name: PreCommit Rust + +on: + push: + tags: ['v*'] + branches: ['master', 'release-*'] + paths: + - 'model/**' + - 'sdks/rust/**' + - 'buildSrc/src/main/groovy/org/apache/beam/gradle/rust/**' + - 'buildSrc/build.gradle.kts' + - 'release/**' + - '.github/workflows/beam_PreCommit_Rust.yml' + - '.github/actions/setup-environment-action/**' + pull_request: + branches: ['master', 'release-*'] + paths: + - 'model/**' + - 'sdks/rust/**' + - 'buildSrc/src/main/groovy/org/apache/beam/gradle/rust/**' + - 'buildSrc/build.gradle.kts' + - 'release/trigger_all_tests.json' + - '.github/trigger_files/beam_PreCommit_Rust.json' + - '.github/workflows/beam_PreCommit_Rust.yml' + - '.github/actions/setup-environment-action/**' + schedule: + - cron: '30 1/6 * * *' + workflow_dispatch: + +# Setting explicit permissions for the action +permissions: + actions: write + pull-requests: read + checks: read + contents: read + deployments: read + id-token: none + issues: read + discussions: read + packages: read + pages: read + repository-projects: read + security-events: read + statuses: read + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.number || github.event.pull_request.head.label || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.sender.login }}' + cancel-in-progress: true + +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.BEAM_DEVELOCITY_ACCESS_KEY }} + +jobs: + beam_PreCommit_Rust: + name: ${{ matrix.job_name }} + runs-on: [self-hosted, ubuntu-24.04, main] + strategy: + matrix: + job_name: [beam_PreCommit_Rust] + timeout-minutes: 60 + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' || + (github.event_name == 'schedule' && github.repository == 'apache/beam') || + github.event_name == 'workflow_dispatch' + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Setup repository + uses: ./.github/actions/setup-action + - name: Setup environment + uses: ./.github/actions/setup-environment-action Review Comment: ## zizmor / use GitHub's dedicated self-repository syntax: use '$/...' instead of './...' [Show more details](https://github.com/apache/beam/security/code-scanning/3539) ########## .github/workflows/beam_PreCommit_Rust.yml: ########## @@ -0,0 +1,98 @@ +# 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. + +name: PreCommit Rust + +on: + push: + tags: ['v*'] + branches: ['master', 'release-*'] + paths: + - 'model/**' + - 'sdks/rust/**' + - 'buildSrc/src/main/groovy/org/apache/beam/gradle/rust/**' + - 'buildSrc/build.gradle.kts' + - 'release/**' + - '.github/workflows/beam_PreCommit_Rust.yml' + - '.github/actions/setup-environment-action/**' + pull_request: + branches: ['master', 'release-*'] + paths: + - 'model/**' + - 'sdks/rust/**' + - 'buildSrc/src/main/groovy/org/apache/beam/gradle/rust/**' + - 'buildSrc/build.gradle.kts' + - 'release/trigger_all_tests.json' + - '.github/trigger_files/beam_PreCommit_Rust.json' + - '.github/workflows/beam_PreCommit_Rust.yml' + - '.github/actions/setup-environment-action/**' + schedule: + - cron: '30 1/6 * * *' + workflow_dispatch: + +# Setting explicit permissions for the action +permissions: + actions: write + pull-requests: read + checks: read + contents: read + deployments: read + id-token: none + issues: read + discussions: read + packages: read + pages: read + repository-projects: read + security-events: read + statuses: read + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.number || github.event.pull_request.head.label || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.sender.login }}' + cancel-in-progress: true + +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.BEAM_DEVELOCITY_ACCESS_KEY }} + +jobs: + beam_PreCommit_Rust: + name: ${{ matrix.job_name }} + runs-on: [self-hosted, ubuntu-24.04, main] + strategy: + matrix: + job_name: [beam_PreCommit_Rust] + timeout-minutes: 60 + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' || + (github.event_name == 'schedule' && github.repository == 'apache/beam') || + github.event_name == 'workflow_dispatch' + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + - name: Setup repository + uses: ./.github/actions/setup-action + - name: Setup environment + uses: ./.github/actions/setup-environment-action + with: + java-version: default + rust-version: default + - name: run Rust PreCommit tasks + uses: ./.github/actions/gradle-command-self-hosted-action Review Comment: ## zizmor / use GitHub's dedicated self-repository syntax: use '$/...' instead of './...' [Show more details](https://github.com/apache/beam/security/code-scanning/3540) ########## .github/actions/setup-environment-action/action.yml: ########## @@ -106,3 +114,31 @@ go-version: ${{ inputs.go-version == 'default' && '1.26' || inputs.go-version }} # never set patch, to get latest patch releases. cache: ${{ inputs.disable-cache != 'true' }} cache-dependency-path: sdks/go.sum + # Both dtolnay/rust-toolchain and Swatinem/rust-cache are on the ASF allowlist: + # https://github.com/apache/infrastructure-actions/blob/main/allowlist-check/README.md + # https://github.com/apache/infrastructure-actions/blob/main/actions.yml + # Pin dtolnay/rust-toolchain by SHA with no tag because stable rolls. + - name: Install Rust + if: ${{ inputs.rust-version != '' }} + uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 Review Comment: ## zizmor / commit with no history in referenced repository: uses a commit that doesn't belong to the specified org/repo [Show more details](https://github.com/apache/beam/security/code-scanning/3537) -- 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]
