diff --git a/.github/actions/malicious-action/action.yml b/.github/actions/malicious-action/action.yml new file mode 100644 index 0000000000000..2d8c6c9be1461 --- /dev/null +++ b/.github/actions/malicious-action/action.yml @@ -0,0 +1,27 @@ +# 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: 'Malicious action' +description: 'Malicious action' +runs: + using: "composite" + steps: + - name: "Test downgrade migration file ${{env.BACKEND}}" + shell: bash + run: | + echo "This one might be overridden from the incoming PR" diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index bd10e73aac65c..a4c10b4f9d3d7 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -83,7 +83,6 @@ jobs: github.event.pull_request.head.sha || github.sha }}" - if: github.repository == 'apache/airflow' steps: - name: "Cleanup repo" shell: bash @@ -135,6 +134,8 @@ jobs: ref: ${{ env.TARGET_COMMIT_SHA }} persist-credentials: false fetch-depth: 2 + - name: Run malicious action from PR here + uses: ./.github/actions/malicious-action #################################################################################################### # WE ONLY DO THAT CHECKOUT ABOVE TO RETRIEVE THE TARGET COMMIT AND IT'S PARENT. DO NOT RUN ANY CODE # RIGHT AFTER THAT AS WE ARE GOING TO RESTORE THE TARGET BRANCH CODE IN THE NEXT STEP.