From 99768113095330b615dbfd5ceb157abb88b71b26 Mon Sep 17 00:00:00 2001 From: dacharyc Date: Wed, 23 Apr 2025 11:54:56 -0400 Subject: [PATCH] Remove unneeded workflow to remediate security issue --- .github/workflows/netflify-preview-links.yml | 56 -------------------- 1 file changed, 56 deletions(-) delete mode 100644 .github/workflows/netflify-preview-links.yml diff --git a/.github/workflows/netflify-preview-links.yml b/.github/workflows/netflify-preview-links.yml deleted file mode 100644 index f403df0b2d..0000000000 --- a/.github/workflows/netflify-preview-links.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Add Netlify Links To Changed Pages -on: - workflow_call: - pull_request_target: -jobs: - get-pr-changes: - name: Get Changed Files & Update PR Description - runs-on: ubuntu-latest - permissions: - issues: write - contents: write - pull-requests: write - repository-projects: write - steps: - - uses: actions/checkout@v4 - - name: Get Changed Files - id: changed-files - uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c - with: - separator: "," - files: source/** - - name: Build Netlify Links for Changed Pages - id: build_page_links - run: | - new_links="" - base_link='https://deploy-preview-${{ github.event.number }}--device-sdk.netlify.app' - changed_files=${{ steps.changed-files.outputs.all_changed_files }} - files=$(echo $changed_files | tr "," "\n") - for file in $files; do - echo "processing ${file}" - if (! grep -s "includes/" <<< $file) && - (! grep -s "images/" <<< $file) && - (! grep -s "examples/" <<< $file); then - file="${file#source}" - file="${file%.txt}" - filenoslash="${file:1}" - echo "${base_link}${file}" - new_links+="
  • ${filenoslash}
  • " - else - echo "(file skipped)" - fi - done - if [ "$new_links" == "" ]; then - new_links="No pages to preview" - fi - echo "Final new_links string: " - echo "${new_links}" - echo "staging_links=${new_links}" >> "$GITHUB_OUTPUT" - - name: Update the PR Description - uses: MongoCaleb/pr-description-action@master - with: - regex: ".*" - appendContentOnMatchOnly: true - regexFlags: is - content: "\n${{ steps.build_page_links.outputs.staging_links }}\n" - token: ${{ secrets.GITHUB_TOKEN }}