Skip to content
Snippets Groups Projects
Unverified Commit d3f68513 authored by Eugen Snitko's avatar Eugen Snitko Committed by GitHub
Browse files

remove compromised action (#7934)

remove compromised tj-actions/changed-files
set all related vars to 'true' for now
https://news.ycombinator.com/item?id=43368870
parent 762f9023
No related merge requests found
Pipeline #519163 waiting for manual action with stages
in 1 hour, 30 minutes, and 47 seconds
......@@ -78,8 +78,8 @@ jobs:
preflight:
runs-on: ubuntu-latest
outputs:
changes_rust: ${{ steps.set_changes.outputs.rust_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_currentWorkflow: ${{ steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_rust: true
changes_currentWorkflow: true
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
......@@ -112,19 +112,20 @@ jobs:
echo "currentWorkflowFile=$(echo ${{ github.workflow_ref }} | sed -nE "s/.*(\.github\/workflows\/[a-zA-Z0-9_-]*\.y[a]?ml)@refs.*/\1/p")" >> $GITHUB_OUTPUT
echo "currentActionDir=$(echo ${{ github.action_path }} | sed -nE "s/.*(\.github\/actions\/[a-zA-Z0-9_-]*)/\1/p")" >> $GITHUB_OUTPUT
- name: Set changes
id: set_changes
uses: tj-actions/changed-files@v45
with:
files_yaml: |
rust:
- '**/*'
- '!.github/**/*'
- '!prdoc/**/*'
- '!docs/**/*'
currentWorkflow:
- '${{ steps.current_file.outputs.currentWorkflowFile }}'
- '.github/workflows/reusable-preflight.yml'
# removed due to https://news.ycombinator.com/item?id=43368870
#- name: Set changes
# id: set_changes
# uses: tj-actions/changed-files@v45
# with:
# files_yaml: |
# rust:
# - '**/*'
# - '!.github/**/*'
# - '!prdoc/**/*'
# - '!docs/**/*'
# currentWorkflow:
# - '${{ steps.current_file.outputs.currentWorkflowFile }}'
# - '.github/workflows/reusable-preflight.yml'
#
# Set image
......@@ -180,7 +181,6 @@ jobs:
shell: bash
run: |
echo "workflow file: ${{ steps.current_file.outputs.currentWorkflowFile }}"
echo "Modified: ${{ steps.set_changes.outputs.modified_keys }}"
#
#
......
......@@ -102,11 +102,11 @@ jobs:
preflight:
runs-on: ubuntu-latest
outputs:
changes_substrate: ${{ steps.set_changes.outputs.substrate_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_cumulus: ${{ steps.set_changes.outputs.cumulus_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_polkadot: ${{ steps.set_changes.outputs.polkadot_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_bridges: ${{ steps.set_changes.outputs.bridges_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_templates: ${{ steps.set_changes.outputs.templates_any_changed || steps.set_changes.outputs.currentWorkflow_any_changed }}
changes_substrate: true
changes_cumulus: true
changes_polkadot: true
changes_bridges: true
changes_templates: true
ZOMBIENET_IMAGE: ${{ steps.set_vars.outputs.ZOMBIENET_IMAGE }}
ZOMBIENET_RUNNER: ${{ steps.set_vars.outputs.ZOMBIENET_RUNNER }}
......@@ -139,25 +139,26 @@ jobs:
echo "currentWorkflowFile=$(echo ${{ github.workflow_ref }} | sed -nE "s/.*(\.github\/workflows\/[a-zA-Z0-9_-]*\.y[a]?ml)@refs.*/\1/p")" >> $GITHUB_OUTPUT
echo "currentActionDir=$(echo ${{ github.action_path }} | sed -nE "s/.*(\.github\/actions\/[a-zA-Z0-9_-]*)/\1/p")" >> $GITHUB_OUTPUT
- name: Set changes
id: set_changes
uses: tj-actions/changed-files@v45
with:
files_yaml: |
substrate:
- 'substrate/**/*'
cumulus:
- 'cumulus/**/*'
polkadot:
- 'polkadot/**/*'
bridges:
- 'bridges/**/*'
templates:
- 'templates/**/*'
currentWorkflow:
- '${{ steps.current_file.outputs.currentWorkflowFile }}'
- '.github/workflows/zombienet-reusable-preflight.yml'
- '.github/zombienet-env'
# removed due to https://news.ycombinator.com/item?id=43368870
#- name: Set changes
# id: set_changes
# uses: tj-actions/changed-files@v45
# with:
# files_yaml: |
# substrate:
# - 'substrate/**/*'
# cumulus:
# - 'cumulus/**/*'
# polkadot:
# - 'polkadot/**/*'
# bridges:
# - 'bridges/**/*'
# templates:
# - 'templates/**/*'
# currentWorkflow:
# - '${{ steps.current_file.outputs.currentWorkflowFile }}'
# - '.github/workflows/zombienet-reusable-preflight.yml'
# - '.github/zombienet-env'
#
# Set environment vars (including runner/image)
......@@ -187,7 +188,6 @@ jobs:
shell: bash
run: |
echo "workflow file: ${{ steps.current_file.outputs.currentWorkflowFile }}"
echo "Modified: ${{ steps.set_changes.outputs.modified_keys }}"
echo "ZOMBIENET_IMAGE: ${{ steps.set_vars.outputs.ZOMBIENET_IMAGE }}"
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment