Skip to content

Commit

Permalink
chore: Pinning all actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yhakbar committed Apr 26, 2024
1 parent 07f5482 commit 3ee8966
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pipelines-delegated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Preflight Checks
uses: gruntwork-io/pipelines-preflight-action@main
uses: gruntwork-io/pipelines-preflight-action@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}

- name: Pipelines Orchestrate
id: orchestrate
uses: gruntwork-io/pipelines-orchestrate@main
uses: pipelines-[email protected]
with:
token: ${{ secrets.PIPELINES_READ_TOKEN || secrets.GITHUB_TOKEN }}

Expand All @@ -47,7 +47,7 @@ jobs:

- name: Bootstrap Workflow
id: bootstrap
uses: gruntwork-io/pipelines-bootstrap@main
uses: gruntwork-io/pipelines-bootstrap@v0.0.1
with:
token: ${{ secrets.PIPELINES_READ_TOKEN }}
change_type: ${{ matrix.jobs.ChangeType }}
Expand All @@ -61,7 +61,7 @@ jobs:

- name: "Run terragrunt ${{ steps.bootstrap.outputs.terragrunt_command }} in ${{ steps.bootstrap.outputs.working_directory }}"
id: terragrunt
uses: gruntwork-io/pipelines-aws-execute@main
uses: gruntwork-io/pipelines-aws-execute@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}
account_id: ${{ steps.bootstrap.outputs.account_id }}
Expand All @@ -72,7 +72,7 @@ jobs:

- name: Update comment
if: always()
uses: gruntwork-io/pipelines-status-update@main
uses: gruntwork-io/pipelines-status-update@v0.2.0
with:
step_name: ${{ matrix.jobs.ChangeType }}
step_working_directory: ${{ matrix.jobs.WorkingDirectory }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/pipelines-root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Preflight Checks
uses: gruntwork-io/pipelines-preflight-action@main
uses: gruntwork-io/pipelines-preflight-action@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}

- name: Pipelines Orchestrate
id: orchestrate
uses: gruntwork-io/pipelines-orchestrate@main
uses: pipelines-[email protected]
with:
token: ${{ secrets.PIPELINES_READ_TOKEN }}

Expand All @@ -51,7 +51,7 @@ jobs:

- name: Bootstrap Workflow
id: bootstrap
uses: gruntwork-io/pipelines-bootstrap@main
uses: gruntwork-io/pipelines-bootstrap@v0.0.1
with:
token: ${{ secrets.PIPELINES_READ_TOKEN }}
change_type: ${{ matrix.jobs.ChangeType }}
Expand All @@ -68,7 +68,7 @@ jobs:
- name: "[ProvisionAccount]: Provision New Account"
id: provision_access_control
if: ${{ steps.bootstrap.outputs.action == 'PROVISION_ACCOUNT' }}
uses: gruntwork-io/pipelines-provision-account-action@main
uses: gruntwork-io/pipelines-provision-account-action@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}
INFRA_ROOT_WRITE_TOKEN: ${{ secrets.INFRA_ROOT_WRITE_TOKEN }}
Expand All @@ -81,15 +81,15 @@ jobs:
# TODO: Rename this as pipelines-apply-core-baselines or something similar
# Also, the final Auth to the management account in this action should be done by the pipelines-baseline-child-account-action
# instead to prevent the indirection and confusion
uses: gruntwork-io/pipelines-baseline-account-action@main
uses: gruntwork-io/pipelines-baseline-account-action@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }}

- name: "[TerragruntExecute]: Authenticate with AWS and then Invoke Terragrunt"
id: terragrunt
if: ${{ steps.bootstrap.outputs.action == 'TERRAGRUNT_EXECUTE' }}
uses: gruntwork-io/pipelines-aws-execute@main
uses: gruntwork-io/pipelines-aws-execute@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}
account_id: ${{ steps.bootstrap.outputs.account_id }}
Expand All @@ -99,7 +99,7 @@ jobs:
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }}

- name: Update comment
uses: gruntwork-io/pipelines-status-update@main
uses: gruntwork-io/pipelines-status-update@v0.2.0
if: always()
with:
step_name: ${{ matrix.jobs.ChangeType }}
Expand Down Expand Up @@ -131,23 +131,23 @@ jobs:
jobs: ${{ fromJson(needs.detect_changes.outputs.pipelines_jobs)[0].NewAccounts }}
steps:
- name: Update comment
uses: gruntwork-io/pipelines-status-update@main
uses: gruntwork-io/pipelines-status-update@v0.2.0
with:
step_name: Baseline Child Account ${{ matrix.jobs.Name }}
step_status: "in_progress"
pull_request_number: ${{ needs.pipelines_determine.outputs.pr_number }}

- name: "[Baseline]: Baseline the Child Account"
id: baseline_child_account
uses: gruntwork-io/pipelines-baseline-child-account-action@main
uses: gruntwork-io/pipelines-baseline-child-account-action@v0.0.1
with:
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}
account_id: ${{ matrix.jobs.ID }}
account_name: ${{ matrix.jobs.Name }}
job: ${{ toJson(fromJson(needs.detect_changes.outputs.pipelines_jobs)[0]) }}

- name: Update comment
uses: gruntwork-io/pipelines-status-update@main
uses: gruntwork-io/pipelines-status-update@v0.2.0
if: always()
with:
step_name: Baseline Child Account ${{ matrix.jobs.Name }}
Expand All @@ -169,7 +169,7 @@ jobs:

- name: Bootstrap Workflow
id: bootstrap
uses: gruntwork-io/pipelines-bootstrap@main
uses: gruntwork-io/pipelines-bootstrap@v0.0.1
with:
token: ${{ secrets.PIPELINES_READ_TOKEN }}
change_type: ${{ fromJson(needs.detect_changes.outputs.pipelines_jobs)[0].ChangeType }}
Expand All @@ -187,15 +187,15 @@ jobs:

- name: "Create Access Control PR"
id: access_control_pr
uses: gruntwork-io/pipelines-provision-access-control-action@main
uses: gruntwork-io/pipelines-provision-access-control-action@v0.0.1
with:
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }}
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}
ORG_REPO_ADMIN_TOKEN: ${{ secrets.ORG_REPO_ADMIN_TOKEN }}

- name: "Create and bootstrap delegated Repo"
id: provision_delegated_repo
uses: gruntwork-io/pipelines-provision-repo-action@main
uses: gruntwork-io/pipelines-provision-repo-action@v0.0.1
with:
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }}
access_control_pull_request_url: ${{ steps.access_control_pr.outputs.pull_request_url }}
Expand Down

0 comments on commit 3ee8966

Please sign in to comment.