Skip to content

Commit a710a03

Browse files
committed
chore: Update go-github to v85
Signed-off-by: Steve Hipwell <[email protected]>
1 parent 4ea56b8 commit a710a03

150 files changed

Lines changed: 180 additions & 171 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/dotcom-acceptance-tests.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Acceptance Tests (github.com)
22

33
on:
4-
workflow_dispatch:
5-
# push:
4+
workflow_dispatch: # push:
5+
66
# branches:
77
# - main
88
# - release-v*
@@ -25,15 +25,18 @@ permissions: read-all
2525
jobs:
2626
test:
2727
name: Test ${{ matrix.mode }}
28-
if: (github.event_name != 'pull_request' && github.event_name != 'pull_request_target') || contains(github.event.pull_request.labels.*.name, 'acctest')
28+
if: (github.event_name != 'pull_request' && github.event_name !=
29+
'pull_request_target') ||
30+
contains(github.event.pull_request.labels.*.name, 'acctest')
2931
runs-on: ubuntu-latest
3032
permissions:
3133
contents: read
3234
environment:
3335
name: acctest-dotcom
36+
deployment: false
3437
strategy:
3538
matrix:
36-
mode: [anonymous, individual, organization] # team, enterprise
39+
mode: [ anonymous, individual, organization ] # team, enterprise
3740
fail-fast: true
3841
max-parallel: 1
3942
defaults:
@@ -46,7 +49,8 @@ jobs:
4649
- name: Check secrets
4750
if: github.event_name == 'pull_request_target'
4851
env:
49-
INPUT_ALLOWED_SECRETS: ${{ vars.DOTCOM_ACCEPTANCE_TESTS_ALLOWED_SECRETS || 'GH_TEST_TOKEN' }}
52+
INPUT_ALLOWED_SECRETS: ${{ vars.DOTCOM_ACCEPTANCE_TESTS_ALLOWED_SECRETS ||
53+
'GH_TEST_TOKEN' }}
5054
INPUT_SECRETS: ${{ toJSON(secrets) }}
5155
run: |
5256
set -eou pipefail
@@ -103,7 +107,8 @@ jobs:
103107
TF_LOG: WARN
104108
GITHUB_TOKEN: ${{ steps.credentials.outputs.token }}
105109
GITHUB_BASE_URL: https://api.github.com/
106-
GITHUB_OWNER: ${{ (matrix.mode == 'individual' && vars.GH_TEST_LOGIN) || (matrix.mode == 'organization' && vars.GH_TEST_ORG_NAME) || '' }}
110+
GITHUB_OWNER: ${{ (matrix.mode == 'individual' && vars.GH_TEST_LOGIN) ||
111+
(matrix.mode == 'organization' && vars.GH_TEST_ORG_NAME) || '' }}
107112
GITHUB_USERNAME: ${{ vars.GH_TEST_LOGIN }}
108113
GITHUB_ENTERPRISE_SLUG: ${{ vars.GH_TEST_ENTERPRISE_SLUG }}
109114
GH_TEST_AUTH_MODE: ${{ matrix.mode }}

.github/workflows/ghes-acceptance-tests.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Acceptance Tests (GHES)
22

33
on:
44
workflow_dispatch:
5-
# pull_request_target:
6-
# types:
7-
# - opened
8-
# - synchronize
9-
# - reopened
10-
# - labeled
11-
# branches:
12-
# - main
13-
# - release-v*
5+
# pull_request_target:
6+
# types:
7+
# - opened
8+
# - synchronize
9+
# - reopened
10+
# - labeled
11+
# branches:
12+
# - main
13+
# - release-v*
1414

1515
concurrency:
1616
group: acctest-ghes-${{ github.ref }}
@@ -26,6 +26,7 @@ jobs:
2626
contents: read
2727
environment:
2828
name: acctest-ghes
29+
deployment: false
2930
defaults:
3031
run:
3132
shell: bash
@@ -36,7 +37,8 @@ jobs:
3637
- name: Check secrets
3738
if: github.event_name == 'pull_request_target'
3839
env:
39-
INPUT_ALLOWED_SECRETS: ${{ vars.GHES_ACCEPTANCE_TESTS_ALLOWED_SECRETS || 'GHES_TEST_USER_TOKEN' }}
40+
INPUT_ALLOWED_SECRETS: ${{ vars.GHES_ACCEPTANCE_TESTS_ALLOWED_SECRETS ||
41+
'GHES_TEST_USER_TOKEN' }}
4042
INPUT_SECRETS: ${{ toJSON(secrets) }}
4143
run: |
4244
set -eou pipefail

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
id-token: write
2626
environment:
2727
name: release
28+
deployment: false
2829
defaults:
2930
run:
3031
shell: bash
@@ -66,4 +67,5 @@ jobs:
6667
- name: Attest artifacts
6768
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
6869
with:
69-
subject-checksums: ./dist/${{ github.event.repository.name }}_${{ fromJSON(steps.goreleaser.outputs.metadata).version }}_SHA256SUMS
70+
subject-checksums: ./dist/${{ github.event.repository.name }}_${{
71+
fromJSON(steps.goreleaser.outputs.metadata).version }}_SHA256SUMS

github/acc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"testing"
1212

13-
"github.com/google/go-github/v84/github"
13+
"github.com/google/go-github/v85/github"
1414
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1515
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1616
)

github/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/google/go-github/v84/github"
12+
"github.com/google/go-github/v85/github"
1313
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
1414
"github.com/shurcooL/githubv4"
1515
"golang.org/x/oauth2"

github/data_source_github_actions_environment_secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"net/url"
66

7-
"github.com/google/go-github/v84/github"
7+
"github.com/google/go-github/v85/github"
88

99
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

github/data_source_github_actions_environment_variables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"net/url"
66

7-
"github.com/google/go-github/v84/github"
7+
"github.com/google/go-github/v85/github"
88

99
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

github/data_source_github_actions_organization_secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package github
33
import (
44
"context"
55

6-
"github.com/google/go-github/v84/github"
6+
"github.com/google/go-github/v85/github"
77

88
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

github/data_source_github_actions_organization_variables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package github
33
import (
44
"context"
55

6-
"github.com/google/go-github/v84/github"
6+
"github.com/google/go-github/v85/github"
77

88
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

github/data_source_github_actions_secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package github
33
import (
44
"context"
55

6-
"github.com/google/go-github/v84/github"
6+
"github.com/google/go-github/v85/github"
77

88
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

0 commit comments

Comments
 (0)