Rarely error occurs on suzuki-shunsuke/tfaction/list-targets step #1023
-
tfaction versionWe have encountered problems with some versions.
OverviewAlthough the exact cause is unknown, the following error occurs in Run suzuki-shunsuke/tfaction/[email protected]
Run tempfile="$(mktemp)"
time="2023-05-10T08:40:10Z" level=info msg="download and unarchive the package" aqua_version=2.5.1 env=linux/amd64 exe_name=github-comment package=suzuki-shunsuke/github-comment package_name=suzuki-shunsuke/github-comment package_version=v6.0.0 program=aqua registry=standard
time="2023-05-10T08:40:10Z" level=info msg="verify a package with slsa-verifier" aqua_version=2.5.1 env=linux/amd64 exe_name=github-comment package=suzuki-shunsuke/github-comment package_name=suzuki-shunsuke/github-comment package_version=v6.0.0 program=aqua registry=standard
time="2023-05-10T08:40:10Z" level=info msg="download and unarchive the package" aqua_version=2.5.1 env=linux/amd64 exe_name=github-comment package=suzuki-shunsuke/github-comment package_name=slsa-framework/slsa-verifier package_version=v2.2.0 program=aqua registry=
Verified signature against tlog entry index 18608072 at URL: https://rekor.sigstore.dev/api/v1/log/entries/24296fb24b8ad77a014f62c5e49b6ab8b99a3277d765fbc8df7c57e023de41b6fbb2b5ebb770c227
Verified build using builder https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v1.5.0 at commit 2b23e1cf2de3a938da53d58397ba17fe67b066fd
Verifying artifact /tmp/416872678: PASSED
PASSED: Verified SLSA provenance
time="2023-05-10T08:40:12Z" level=warning msg="list associated prs" error="associated pull request isn't found" org=MyOrg repo=MyRepo sha=553fdebf5f10823c02dafaa85da74e1d84c844e9
time="2023-05-10T08:40:12Z" level=info msg="download and unarchive the package" aqua_version=2.5.1 env=linux/amd64 exe_name=ci-info package=suzuki-shunsuke/ci-info package_name=suzuki-shunsuke/ci-info package_version=v2.1.2 program=aqua registry=standard
time="2023-05-10T08:40:13Z" level=info msg="verify a package with slsa-verifier" aqua_version=2.5.1 env=linux/amd64 exe_name=ci-info package=suzuki-shunsuke/ci-info package_name=suzuki-shunsuke/ci-info package_version=v2.1.2 program=aqua registry=standard
Verified signature against tlog entry index 11165794 at URL: https://rekor.sigstore.dev/api/v1/log/entries/24296fb24b8ad77a41190e6f40a14ebb5556d7270744dab7d7cca1294ce4f9e0393d9c2a42bac775
Verified build using builder https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v1.4.0 at commit 4a047e648dd0b9d0de1be356421d5d043c38d080
Verifying artifact /tmp/749567826: PASSED
PASSED: Verified SLSA provenance
cp: cannot create regular file '/env': Permission denied
Error: Process completed with exit code 1. There appears to be an error when executing
tfaction/list-targets/action.yaml Lines 22 to 27 in a496b98 How to reproducetfaction-root.yaml ---
target_groups:
- working_directory: envs/staging
target: envs/staging
aws_region: ap-northeast-1
s3_bucket_name_plan_file: 'MyRepo-1234123412341234'
s3_bucket_name_tfmigrate_history: 'MyRepo-1234123412341234'
terraform_plan_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-terraform-plan-myrepo
tfmigrate_plan_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-tfmigrate-plan-myrepo
terraform_apply_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-terraform-apply-myrepo
tfmigrate_apply_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-tfmigrate-apply-myrepo
- working_directory: envs/production
target: envs/production
aws_region: ap-northeast-1
s3_bucket_name_plan_file: 'MyRepo-1234123412341234'
s3_bucket_name_tfmigrate_history: 'MyRepo-1234123412341234'
terraform_plan_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-terraform-plan-myrepo
tfmigrate_plan_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-tfmigrate-plan-myrepo
terraform_apply_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-terraform-apply-myrepo
tfmigrate_apply_config:
aws_assume_role_arn: arn:aws:iam::1234123412341234:role/gha-tfmigrate-apply-myrepo tfaction.yaml {} GitHub Actions Workflow ---
name: apply
on:
push:
branches: [main]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TFACTION_IS_APPLY: 'true'
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
setup:
runs-on: ubuntu-latest
outputs:
tfmigrate_targets: ${{ steps.list-targets.outputs.tfmigrate_targets }}
terraform_targets: ${{ steps.list-targets.outputs.terraform_targets }}
steps:
- uses: actions/checkout@v3
- uses: aquaproj/[email protected]
with:
aqua_version: v2.9.0
- uses: suzuki-shunsuke/tfaction/[email protected]
id: list-targets
tfmigrate-apply:
name: "tfmigrate-apply (${{matrix.target.target}})"
runs-on: ${{matrix.target.runs_on}}
needs: setup
# if services is empty, the build job is skipped
if: "join(fromJSON(needs.setup.outputs.tfmigrate_targets), '') != ''"
strategy:
fail-fast: false
matrix:
target: ${{fromJSON(needs.setup.outputs.tfmigrate_targets)}}
env:
TFACTION_TARGET: ${{matrix.target.target}}
TFACTION_JOB_TYPE: tfmigrate
steps:
- uses: actions/checkout@v3
- uses: aquaproj/[email protected]
with:
aqua_version: v2.9.0
- uses: suzuki-shunsuke/tfaction/[email protected]
with:
secrets: ${{ toJSON(secrets) }}
- uses: suzuki-shunsuke/tfaction/[email protected]
id: setup
with:
github_app_token: ${{ secrets.GIT_PERSONAL_TOKEN }}
- uses: suzuki-shunsuke/tfaction/[email protected]
id: target-config
- uses: ./.github/actions/decrypt-tfvars
with:
working_dir: ${{ steps.target-config.outputs.working_directory }}
kms_key_id: ${{ secrets.KMS_KEY_ID }}
aws_region: ${{ steps.target-config.outputs.aws_region }}
- uses: suzuki-shunsuke/tfaction/[email protected]
with:
github_app_token: ${{ secrets.GIT_PERSONAL_TOKEN }}
- uses: suzuki-shunsuke/tfaction/[email protected]
if: failure()
with:
github_app_token: ${{ secrets.GIT_PERSONAL_TOKEN }}
terraform-apply:
name: "terraform-apply (${{matrix.target.target}})"
runs-on: ${{matrix.target.runs_on}}
needs: setup
# if services is empty, the build job is skipped
if: "join(fromJSON(needs.setup.outputs.terraform_targets), '') != ''"
strategy:
fail-fast: false
matrix:
target: ${{fromJSON(needs.setup.outputs.terraform_targets)}}
env:
TFACTION_TARGET: ${{matrix.target.target}}
TFACTION_JOB_TYPE: terraform
steps:
- uses: actions/checkout@v3
- uses: aquaproj/[email protected]
with:
aqua_version: v2.9.0
- uses: suzuki-shunsuke/tfaction/[email protected]
with:
secrets: ${{ toJSON(secrets) }}
- uses: suzuki-shunsuke/tfaction/[email protected]
id: setup
with:
github_app_token: ${{ secrets.GIT_PERSONAL_TOKEN }}
- uses: suzuki-shunsuke/tfaction/[email protected]
id: target-config
- uses: ./.github/actions/decrypt-tfvars
with:
working_dir: ${{ steps.target-config.outputs.working_directory }}
kms_key_id: ${{ secrets.KMS_KEY_ID }}
aws_region: ${{ steps.target-config.outputs.aws_region }}
- uses: suzuki-shunsuke/tfaction/[email protected]
with:
github_app_token: ${{ secrets.GIT_PERSONAL_TOKEN }}
- uses: suzuki-shunsuke/tfaction/[email protected]
if: failure()
with:
github_app_token: ${{ secrets.GIT_PERSONAL_TOKEN }} GitHub Actions' log
Expected behaviourTarget is correctly selected Actual behaviourAn error occures Important Factoids
ReferenceNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Can you reproduce the warning if you run $ ci-info run --owner "$OWENR" --repo "$REPO" --sha "$SHA" |
Beta Was this translation helpful? Give feedback.
-
How did you merge the pull request? |
Beta Was this translation helpful? Give feedback.
-
BTW, tfaction should use |
Beta Was this translation helpful? Give feedback.
-
Sorry, maybe it is a temporary problem 🤔 We ran into the problem about an hour and a half ago. |
Beta Was this translation helpful? Give feedback.
Sorry, maybe it is a temporary problem 🤔 We ran into the problem about an hour and a half ago.
https://www.githubstatus.com/incidents/yr8dbc2p1ny4