From bc5e6970acc6137ae6ea40816520d2f1ecee0f8d Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Tue, 4 Aug 2026 11:36:38 -0600 Subject: [PATCH 1/3] docs: update to pinned versions + use latest --- docs/aws.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/aws.md b/docs/aws.md index 4178bac..40d5f54 100644 --- a/docs/aws.md +++ b/docs/aws.md @@ -101,15 +101,16 @@ jobs: instances: ${{ steps.aws-start.outputs.instances }} steps: - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 + uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3 with: role-to-assume: aws-region: - name: Create cloud runner id: aws-start - uses: omsf/start-aws-gha-runner@v1.3.0 + uses: omsf/start-aws-gha-runner@a68aee57f031da4b6a0063d901e02f0b17d95f94 # v1.3.0 with: - aws_image_id: + aws_image_name: + aws_image_id: latest aws_instance_type: aws_home_dir: /home/ubuntu env: @@ -119,7 +120,7 @@ jobs: needs: - start-aws-runner steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - name: Print disk usage run: "df -h" - name: Print Docker details @@ -135,12 +136,12 @@ jobs: if: ${{ always() }} steps: - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 + uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3 with: role-to-assume: aws-region: - name: Stop instances - uses: omsf/stop-aws-gha-runner@v1.0.0 + uses: omsf/stop-aws-gha-runner@a3d2e34cba8571eaf9b40ae00705d6b2b77402f6 # v1.0.0 with: instance_mapping: ${{ needs.start-aws-runner.outputs.mapping }} env: From aafcca08bcf84b8cd9d9e009ff98b003402e9834 Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Tue, 4 Aug 2026 14:00:42 -0600 Subject: [PATCH 2/3] docs: add env vars for role and region --- docs/aws.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/aws.md b/docs/aws.md index 40d5f54..9a54a35 100644 --- a/docs/aws.md +++ b/docs/aws.md @@ -90,6 +90,10 @@ name: Test Self-Hosted Runner on: workflow_dispatch: +env: + AWS_ROLE_ARN: + AWS_REGION: + jobs: start-aws-runner: runs-on: ubuntu-latest @@ -103,8 +107,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3 with: - role-to-assume: - aws-region: + role-to-assume: ${{ env.AWS_ROLE_ARN }} + aws-region: ${{ env.AWS_REGION }} - name: Create cloud runner id: aws-start uses: omsf/start-aws-gha-runner@a68aee57f031da4b6a0063d901e02f0b17d95f94 # v1.3.0 @@ -138,8 +142,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3 with: - role-to-assume: - aws-region: + role-to-assume: ${{ env.AWS_ROLE_ARN }} + aws-region: ${{ env.AWS_REGION }} - name: Stop instances uses: omsf/stop-aws-gha-runner@a3d2e34cba8571eaf9b40ae00705d6b2b77402f6 # v1.0.0 with: From 624adc2e3f6481389b61ae0ac049db162516ee76 Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Tue, 4 Aug 2026 14:13:41 -0600 Subject: [PATCH 3/3] ci: automate documented action updates Run pinact weekly and on demand to update action references in the AWS documentation, then open or refresh a pull request with any changes. Assisted-by: Pi:openai-codex/gpt-5.6-sol --- .github/workflows/pinact.yaml | 37 +++++++++++++++++++++++++++++++++++ .pinact.yaml | 5 +++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/pinact.yaml create mode 100644 .pinact.yaml diff --git a/.github/workflows/pinact.yaml b/.github/workflows/pinact.yaml new file mode 100644 index 0000000..6ee6183 --- /dev/null +++ b/.github/workflows/pinact.yaml @@ -0,0 +1,37 @@ +name: Update documented actions + +on: + schedule: + - cron: "0 9 * * 1" + timezone: America/Los_Angeles + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + pinact: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - uses: suzuki-shunsuke/pinact-action@896d595f299e71d65b9d28349d6956abe144390a # v3.0.0 + with: + config: .pinact.yaml + github_token: ${{ github.token }} + skip_push: "true" + update: "true" + + - name: Create pull request + uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 + with: + token: ${{ github.token }} + add-paths: docs/aws.md + branch: automation/pinact-docs + delete-branch: true + commit-message: "docs: update pinned actions" + title: "docs: update pinned actions" + body: Automated action updates generated by pinact. diff --git a/.pinact.yaml b/.pinact.yaml new file mode 100644 index 0000000..46a50e2 --- /dev/null +++ b/.pinact.yaml @@ -0,0 +1,5 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/suzuki-shunsuke/pinact/refs/heads/main/json-schema/pinact.json +# pinact - https://github.com/suzuki-shunsuke/pinact +version: 3 +files: + - pattern: docs/aws.md