From 560bbfba6a6d4d0a16599b5ff1d5effcd6315289 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Tue, 5 Apr 2022 17:23:45 +0000 Subject: [PATCH] fix: remove actions permission from post-dependabot --- .github/workflows/post-dependabot.yml | 3 +- lib/content/post-dependabot.yml | 3 +- .../test/apply/full-content.js.test.cjs | 6 +- .../test/check/gitignore.js.test.cjs | 214 ------------------ 4 files changed, 4 insertions(+), 222 deletions(-) delete mode 100644 tap-snapshots/test/check/gitignore.js.test.cjs diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index 7ad2555d..0372a7a9 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -6,11 +6,10 @@ on: pull_request # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: - actions: write contents: write jobs: - Install: + template-oss-apply: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: diff --git a/lib/content/post-dependabot.yml b/lib/content/post-dependabot.yml index 81a58021..8d77bdee 100644 --- a/lib/content/post-dependabot.yml +++ b/lib/content/post-dependabot.yml @@ -5,11 +5,10 @@ on: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: - actions: write contents: write jobs: - Install: + template-oss-apply: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: diff --git a/tap-snapshots/test/apply/full-content.js.test.cjs b/tap-snapshots/test/apply/full-content.js.test.cjs index 33d01fdf..8a1cbf01 100644 --- a/tap-snapshots/test/apply/full-content.js.test.cjs +++ b/tap-snapshots/test/apply/full-content.js.test.cjs @@ -302,11 +302,10 @@ on: pull_request # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: - actions: write contents: write jobs: - Install: + template-oss-apply: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: @@ -967,11 +966,10 @@ on: pull_request # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: - actions: write contents: write jobs: - Install: + template-oss-apply: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: diff --git a/tap-snapshots/test/check/gitignore.js.test.cjs b/tap-snapshots/test/check/gitignore.js.test.cjs deleted file mode 100644 index 89e415f5..00000000 --- a/tap-snapshots/test/check/gitignore.js.test.cjs +++ /dev/null @@ -1,214 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/check/gitignore.js TAP will report tracked files in gitignore > expect resolving Promise 1`] = ` -Some problems were detected: - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in .gitignore: - - ignorethis - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.commitlintrc.js - !/.eslintrc.js - !/.github/ - !/.gitignore - !/.npmrc - !/SECURITY.md - !/bin/ - !/lib/ - !/package.json - -------------------------------------------------------------------- -` - -exports[`test/check/gitignore.js TAP will report tracked files in gitignore workspace > expect resolving Promise 1`] = ` -Some problems were detected: - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in .gitignore: - - ignorethis - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.commitlintrc.js - !/.eslintrc.js - !/.github/ - !/.gitignore - !/.npmrc - !/SECURITY.md - !/bin/ - !/lib/ - !/package.json - !/workspaces/ - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in workspaces/a/.gitignore: - - workspaces/a/wsafile - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.eslintrc.js - !/.gitignore - !/bin/ - !/lib/ - !/package.json - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in workspaces/b/.gitignore: - - workspaces/b/wsbfile - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.eslintrc.js - !/.gitignore - !/bin/ - !/lib/ - !/package.json - -------------------------------------------------------------------- -` - -exports[`test/check/gitignore.js TAP works with workspaces in separate dirs > expect resolving Promise 1`] = ` -Some problems were detected: - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in .gitignore: - - ignorethis - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.commitlintrc.js - !/.eslintrc.js - !/.github/ - !/.gitignore - !/.npmrc - !/SECURITY.md - !/bin/ - !/lib/ - !/package.json - !/workspace-a - !/workspace-b - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in workspace-a/.gitignore: - - workspace-a/wsafile - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.eslintrc.js - !/.gitignore - !/bin/ - !/lib/ - !/package.json - -------------------------------------------------------------------- - -The following files are tracked by git but matching a pattern in workspace-b/.gitignore: - - workspace-b/wsbfile - -To correct it: move files to not match one of the following patterns: - - /* - !/.eslintrc.local.* - !**/.gitignore - !/docs/ - !/tap-snapshots/ - !/test/ - !/map.js - !/scripts/ - !/README* - !/LICENSE* - !/CHANGELOG* - !/.eslintrc.js - !/.gitignore - !/bin/ - !/lib/ - !/package.json - -------------------------------------------------------------------- -`