Skip to content

plugin: Ignore forbidden attestation fetch errors#2481

Merged
wata727 merged 1 commit into
terraform-linters:masterfrom
wata727:codex/ignore-attestation-403
Mar 15, 2026
Merged

plugin: Ignore forbidden attestation fetch errors#2481
wata727 merged 1 commit into
terraform-linters:masterfrom
wata727:codex/ignore-attestation-403

Conversation

@wata727
Copy link
Copy Markdown
Member

@wata727 wata727 commented Mar 14, 2026

Fixes #2460

With the keyless verification introduced in #2453, if attestation does not exist or if it is a private repository, it will now fall back to signing key-based verification.

However, as a result of always fetching attestations, errors now occur when the GITHUB_TOKEN does not have permission to fetch attestations, as in #2460.

Since attestations can always be fetched from a public repository, if it cannot be fetched due to a permission error, it is likely that it is a private repository. So, in this PR, if a 403 error occurs, we will assume that attestations are unavailable and fall back to signing key-based verification.

@wata727 wata727 force-pushed the codex/ignore-attestation-403 branch from d04525e to 9691314 Compare March 15, 2026 06:51
@wata727 wata727 changed the title Ignore forbidden attestation fetch errors plugin: Ignore forbidden attestation fetch errors Mar 15, 2026
@wata727 wata727 merged commit 3894934 into terraform-linters:master Mar 15, 2026
16 checks passed
@wata727 wata727 mentioned this pull request Mar 15, 2026
3 tasks
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 8, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [tflint](https://github.com/terraform-linters/tflint) | minor | `0.61.0` → `0.62.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>terraform-linters/tflint (tflint)</summary>

### [`v0.62.0`](https://github.com/terraform-linters/tflint/releases/tag/v0.62.0)

[Compare Source](terraform-linters/tflint@v0.61.0...v0.62.0)

#### What's Changed

##### Enhancements

- plugin: Add signature mode to control plugin verifications by [@&#8203;wata727](https://github.com/wata727) in [#&#8203;2483](terraform-linters/tflint#2483)

##### Bug Fixes

- plugin: Ignore forbidden attestation fetch errors by [@&#8203;wata727](https://github.com/wata727) in [#&#8203;2481](terraform-linters/tflint#2481)

##### Chores

- build(deps): Bump the go-x group with 4 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2461](terraform-linters/tflint#2461)
- build(deps): Bump docker/build-push-action from 6.18.0 to 6.19.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2463](terraform-linters/tflint#2463)
- build(deps): Bump google.golang.org/grpc from 1.78.0 to 1.79.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2464](terraform-linters/tflint#2464)
- build(deps): Bump goreleaser/goreleaser-action from 6.4.0 to 7.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2467](terraform-linters/tflint#2467)
- build(deps): Bump go.opentelemetry.io/otel/sdk from 1.39.0 to 1.40.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2469](terraform-linters/tflint#2469)
- build(deps): Bump actions/setup-go from 6.2.0 to 6.3.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2470](terraform-linters/tflint#2470)
- build(deps): Bump golang.org/x/net from 0.50.0 to 0.51.0 in the go-x group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2472](terraform-linters/tflint#2472)
- build(deps): Bump github.com/zclconf/go-cty from 1.17.0 to 1.18.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2473](terraform-linters/tflint#2473)
- build(deps): Bump actions/attest-build-provenance from 3.2.0 to 4.1.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2471](terraform-linters/tflint#2471)
- build(deps): Bump docker/metadata-action from 5.10.0 to 6.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2474](terraform-linters/tflint#2474)
- build(deps): Bump sigstore/cosign-installer from 4.0.0 to 4.1.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2476](terraform-linters/tflint#2476)
- build(deps): Bump golang.org/x/oauth2 from 0.35.0 to 0.36.0 in the go-x group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2479](terraform-linters/tflint#2479)
- build(deps): Bump google.golang.org/grpc from 1.79.1 to 1.79.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2480](terraform-linters/tflint#2480)
- build(deps): Bump docker/setup-buildx-action from 3.12.0 to 4.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2475](terraform-linters/tflint#2475)
- build(deps): Bump docker/build-push-action from 6.19.2 to 7.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2477](terraform-linters/tflint#2477)
- build(deps): Bump docker/login-action from 3.7.0 to 4.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2478](terraform-linters/tflint#2478)
- deps: Bump Go version to 1.26 by [@&#8203;wata727](https://github.com/wata727) in [#&#8203;2482](terraform-linters/tflint#2482)
- build(deps): Bump the go-x group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2484](terraform-linters/tflint#2484)
- build(deps): Bump google.golang.org/grpc from 1.79.2 to 1.79.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2489](terraform-linters/tflint#2489)
- build(deps): Bump mislav/bump-homebrew-formula-action from 3.6 to 4.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2490](terraform-linters/tflint#2490)
- build(deps): Bump github.com/terraform-linters/tflint-plugin-sdk from 0.23.1 to 0.24.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2491](terraform-linters/tflint#2491)
- build(deps): Bump github.com/fatih/color from 1.18.0 to 1.19.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2492](terraform-linters/tflint#2492)
- dependabot: Set cooldown period by [@&#8203;wata727](https://github.com/wata727) in [#&#8203;2493](terraform-linters/tflint#2493)
- build(deps): Bump github.com/go-jose/go-jose/v4 from 4.1.3 to 4.1.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2495](terraform-linters/tflint#2495)
- build(deps): Bump github.com/hashicorp/go-version from 1.8.0 to 1.9.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2496](terraform-linters/tflint#2496)
- build(deps): Bump actions/setup-go from 6.3.0 to 6.4.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2498](terraform-linters/tflint#2498)
- build(deps): Bump github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream from 1.7.4 to 1.7.8 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2499](terraform-linters/tflint#2499)
- build(deps): Bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.95.0 to 1.97.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2500](terraform-linters/tflint#2500)
- build(deps): Bump go.opentelemetry.io/otel/sdk from 1.40.0 to 1.43.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2501](terraform-linters/tflint#2501)
- build(deps): Bump github.com/hashicorp/go-getter from 1.8.4 to 1.8.6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2502](terraform-linters/tflint#2502)
- build(deps): Bump github.com/sigstore/timestamp-authority/v2 from 2.0.3 to 2.0.6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2506](terraform-linters/tflint#2506)
- build(deps): Bump google.golang.org/grpc from 1.79.3 to 1.80.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2503](terraform-linters/tflint#2503)
- build(deps): Bump sigstore/cosign-installer from 4.1.0 to 4.1.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2497](terraform-linters/tflint#2497)
- build(deps): Bump docker/login-action from 4.0.0 to 4.1.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2504](terraform-linters/tflint#2504)
- build(deps): Bump docker/build-push-action from 7.0.0 to 7.1.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;2507](terraform-linters/tflint#2507)
- release: Migrate attest-build-provenance to attest by [@&#8203;wata727](https://github.com/wata727) in [#&#8203;2508](terraform-linters/tflint#2508)

**Full Changelog**: <terraform-linters/tflint@v0.61.0...v0.62.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjguNSIsInVwZGF0ZWRJblZlciI6IjQzLjE2OC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Error trying to fetch attestations

1 participant