Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opentofu/terraform-provider-local
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.5.1
Choose a base ref
...
head repository: opentofu/terraform-provider-local
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 747 additions and 494 deletions.
  1. +6 −0 .changes/2.5.2.md
  2. +3 −1 .changie.yaml
  3. +0 −40 .github/workflows/add-content-to-project.yml
  4. +12 −0 .github/workflows/artifact-release-trigger.yml
  5. +33 −0 .github/workflows/artifact-release.yml
  6. +6 −2 .github/workflows/ci-changie.yml
  7. +2 −2 .github/workflows/compliance.yml
  8. +11 −0 .github/workflows/fork_sync.yml
  9. +0 −15 .github/workflows/issue-comment-created.yml
  10. +21 −0 .github/workflows/issue-comment-triage.yml
  11. +1 −1 .github/workflows/issue-opened.yml
  12. +0 −39 .github/workflows/jira-sync.yml
  13. +21 −0 .github/workflows/lock.yml
  14. +1 −1 .github/workflows/pull-request.yml
  15. +5 −5 .github/workflows/release.yml
  16. +17 −0 .github/workflows/resign.yml
  17. +0 −37 .github/workflows/send-to-jira.yml
  18. +10 −18 .github/workflows/test.yml
  19. +4 −4 .golangci.yml
  20. +4 −2 .goreleaser.yml
  21. +6 −0 CHANGELOG.md
  22. +1 −1 README.md
  23. +1 −1 docs/cdktf/python/data-sources/file.md
  24. +1 −1 docs/cdktf/python/data-sources/sensitive_file.md
  25. +72 −0 docs/cdktf/python/functions/direxists.md
  26. +1 −1 docs/cdktf/python/index.md
  27. +1 −1 docs/cdktf/python/resources/file.md
  28. +1 −1 docs/cdktf/python/resources/sensitive_file.md
  29. +1 −1 docs/cdktf/typescript/data-sources/file.md
  30. +1 −1 docs/cdktf/typescript/data-sources/sensitive_file.md
  31. +72 −0 docs/cdktf/typescript/functions/direxists.md
  32. +1 −1 docs/cdktf/typescript/index.md
  33. +1 −1 docs/cdktf/typescript/resources/file.md
  34. +1 −1 docs/cdktf/typescript/resources/sensitive_file.md
  35. +29 −29 go.mod
  36. +82 −63 go.sum
  37. +82 −25 internal/localtypes/file_permission_type.go
  38. +84 −45 internal/localtypes/file_permission_type_test.go
  39. +3 −7 internal/provider/function_direxists_test.go
  40. +14 −14 internal/provider/resource_local_file.go
  41. +10 −0 internal/provider/resource_local_file_test.go
  42. +13 −13 internal/provider/resource_local_sensitive_file.go
  43. +10 −0 internal/provider/resource_local_sensitive_file_test.go
  44. +30 −33 tools/go.mod
  45. +72 −87 tools/go.sum
6 changes: 6 additions & 0 deletions .changes/2.5.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 2.5.2 (September 11, 2024)

NOTES:

* all: This release introduces no functional changes. It does however include dependency updates which address upstream CVEs. ([#348](https://github.com/hashicorp/terraform-provider-local/issues/348))

4 changes: 3 additions & 1 deletion .changie.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# DO NOT EDIT - This GitHub Workflow is managed by automation
# https://github.com/hashicorp/terraform-devex-repos
changesDir: .changes
unreleasedDir: unreleased
changelogPath: CHANGELOG.md
@@ -19,4 +21,4 @@ kinds:
newlines:
afterKind: 1
beforeKind: 1
endOfVersion: 2
endOfVersion: 2
40 changes: 0 additions & 40 deletions .github/workflows/add-content-to-project.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/artifact-release-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Trigger Artifact Release

on:
workflow_dispatch:

permissions:
contents: read
actions: write

jobs:
trigger:
uses: opentofu/scripts/.github/workflows/trigger.yml@main
33 changes: 33 additions & 0 deletions .github/workflows/artifact-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Artifact Release

on:
workflow_dispatch:
inputs:
tag:
description: "Release tag (v#.#.#)"
type: string
required: true

permissions:
contents: write

jobs:
release-dispatch:
if: inputs.tag != ''
uses: opentofu/scripts/.github/workflows/release.yml@main
with:
tag: ${{ inputs.tag }}
secrets:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GH_PAT: ${{ secrets.GH_PAT }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

release-push:
if: inputs.tag == ''
uses: opentofu/scripts/.github/workflows/release.yml@main
with:
tag: ${{ github.ref_name }}
secrets:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GH_PAT: ${{ secrets.GH_PAT }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
8 changes: 6 additions & 2 deletions .github/workflows/ci-changie.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# DO NOT EDIT - This GitHub Workflow is managed by automation
# https://github.com/hashicorp/terraform-devex-repos

# Continuous integration handling for changie
name: ci-changie

@@ -15,9 +18,10 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# Ensure terraform-devex-repos is updated on version changes.
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Ensure terraform-devex-repos is updated on version changes.
- uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
with:
version: latest
args: batch patch --dry-run

4 changes: 2 additions & 2 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
copywrite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: hashicorp/setup-copywrite@867a1a2a064a0626db322392806428f7dc59cb3e # v1.1.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
- run: copywrite headers --plan
- run: copywrite license --plan
11 changes: 11 additions & 0 deletions .github/workflows/fork_sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Sync Fork

on:
schedule:
- cron: '15 */4 * * *' # every 4 hours
workflow_dispatch: # on button click

jobs:
sync:
uses: opentofu/scripts/.github/workflows/sync.yml@main
secrets: inherit
15 changes: 0 additions & 15 deletions .github/workflows/issue-comment-created.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/issue-comment-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# DO NOT EDIT - This GitHub Workflow is managed by automation
# https://github.com/hashicorp/terraform-devex-repos
name: Issue Comment Triage

on:
issue_comment:
types: [created]

jobs:
issue_comment_triage:
runs-on: ubuntu-latest
env:
# issue_comment events are triggered by comments on issues and pull requests. Checking the
# value of github.event.issue.pull_request tells us whether the issue is an issue or is
# actually a pull request, allowing us to dynamically set the gh subcommand:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
COMMAND: ${{ github.event.issue.pull_request && 'pr' || 'issue' }}
GH_TOKEN: ${{ github.token }}
steps:
- name: 'Remove waiting-response on comment'
run: gh ${{ env.COMMAND }} edit ${{ github.event.issue.html_url }} --remove-label waiting-response
2 changes: 1 addition & 1 deletion .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
issue_triage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
39 changes: 0 additions & 39 deletions .github/workflows/jira-sync.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# DO NOT EDIT - This GitHub Workflow is managed by automation
# https://github.com/hashicorp/terraform-devex-repos
name: 'Lock Threads'

on:
schedule:
- cron: '4 7 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
# NOTE: When TSCCR updates the GitHub action version, update the template workflow file to avoid drift:
# https://github.com/hashicorp/terraform-devex-repos/blob/main/modules/repo/workflows/lock.tftpl
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
with:
github-token: ${{ github.token }}
issue-inactive-days: '30'
issue-lock-reason: resolved
pr-inactive-days: '30'
pr-lock-reason: resolved
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:
with:
configuration-path: .github/labeler-pull-request-triage.yml
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: CodelyTV/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1
- uses: CodelyTV/pr-size-labeler@1c3422395d899286d5ee2c809fd5aed264d5eb9b # v1.10.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/XS'
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
# Avoid persisting GITHUB_TOKEN credentials as they take priority over our service account PAT for `git push` operations
@@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
# Default input is the SHA that initially triggered the workflow. As we created a new commit in the previous job,
@@ -79,7 +79,7 @@ jobs:
needs: [ changelog-version, changelog, release-tag ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.versionNumber }}
fetch-depth: 0
@@ -89,7 +89,7 @@ jobs:
cd .changes
sed -e "1{/# /d;}" -e "2{/^$/d;}" ${{ needs.changelog-version.outputs.version }}.md > release-notes.txt
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: release-notes
path: ./.changes/release-notes.txt
@@ -101,7 +101,7 @@ jobs:
permissions:
contents: write # Needed for goreleaser to create GitHub release
issues: write # Needed for goreleaser to close associated milestone
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/hashicorp.yml@9b5d2ca4b85f3a54d5c4d12e7690ddad1526ff6c # v3.0.1
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/hashicorp.yml@5f388ae147bcc1e1c34822571b2f2de40694c5d6 # v5.0.0
secrets:
hc-releases-key-prod: '${{ secrets.HC_RELEASES_KEY_PROD }}'
hc-releases-key-staging: '${{ secrets.HC_RELEASES_KEY_STAGING }}'
17 changes: 17 additions & 0 deletions .github/workflows/resign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Artifacts Resign

on:
workflow_dispatch:

permissions:
contents: write

jobs:
resign:
uses: opentofu/scripts/.github/workflows/sign.yml@main
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
secrets:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GH_PAT: ${{ secrets.GH_PAT }}
37 changes: 0 additions & 37 deletions .github/workflows/send-to-jira.yml

This file was deleted.

Loading