From e45adc7eb86c51123cebb553fc818f95fa6900cd Mon Sep 17 00:00:00 2001 From: Doug Gschwind Date: Tue, 12 Apr 2022 10:23:00 -0700 Subject: [PATCH] fix: use action-git-auth v2 --- .commitlintrc.yaml | 2 +- .gitignore | 1 + .pre-commit-config.yaml | 2 +- lint/action.yaml | 6 +++--- release/action.yaml | 9 ++++++--- test/action.yaml | 6 +++--- 6 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 .gitignore diff --git a/.commitlintrc.yaml b/.commitlintrc.yaml index 9cb74a7..5d2a5ab 100644 --- a/.commitlintrc.yaml +++ b/.commitlintrc.yaml @@ -1,2 +1,2 @@ extends: - - "@commitlint/config-conventional" + - "@open-turo/commitlint-config-conventional" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7c6f08..2e7b01d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: hooks: - id: commitlint stages: [commit-msg] - additional_dependencies: ["@commitlint/config-conventional"] + additional_dependencies: ["@open-turo/commitlint-config-conventional"] - repo: https://github.com/rhysd/actionlint rev: v1.6.8 hooks: diff --git a/lint/action.yaml b/lint/action.yaml index 7223fc3..2c62843 100644 --- a/lint/action.yaml +++ b/lint/action.yaml @@ -12,7 +12,7 @@ runs: using: composite steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: inputs.checkout-repo with: fetch-depth: 0 @@ -20,9 +20,9 @@ runs: ## Installs version of golang found in .go-version uses: open-turo/action-setup-tools@v1 - name: Authorize - uses: open-turo/action-git-auth@v1 + uses: open-turo/action-git-auth@v2 with: - token: ${{ inputs.github-token }} + github-personal-access-token: ${{ inputs.github-token }} - name: Run npm ci if needed if: hashFiles('package-lock.json') != '' shell: bash diff --git a/release/action.yaml b/release/action.yaml index 23bd789..e4be744 100644 --- a/release/action.yaml +++ b/release/action.yaml @@ -20,14 +20,17 @@ runs: using: composite steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: inputs.checkout-repo with: fetch-depth: 0 - name: Authorize - uses: open-turo/action-git-auth@v1 + uses: open-turo/action-git-auth@v2 with: - token: ${{ inputs.github-token }} + github-personal-access-token: ${{ inputs.github-token }} + - name: Setup tools + ## Installs version of golang found in .go-version + uses: open-turo/action-setup-tools@v1 - name: Semantic release uses: go-semantic-release/action@v1 id: release diff --git a/test/action.yaml b/test/action.yaml index 8bef71a..9de74a3 100644 --- a/test/action.yaml +++ b/test/action.yaml @@ -12,7 +12,7 @@ runs: using: composite steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: inputs.checkout-repo with: fetch-depth: 0 @@ -20,9 +20,9 @@ runs: ## Installs version of golang found in .go-version uses: open-turo/action-setup-tools@v1 - name: Authorize - uses: open-turo/action-git-auth@v1 + uses: open-turo/action-git-auth@v2 with: - token: ${{ inputs.github-token }} + github-personal-access-token: ${{ inputs.github-token }} - name: Execute all go tests with coverage in current and all subdirectories shell: bash run: go test -cover ./...