Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ on:
workflow_dispatch:
env:
GO_VERSION: '1.24.11'
GOLANGCI_LINT_VERSION: '1.64.8'
GOLANGCI_LINT_VERSION: '2.7.2'
jobs:
git-secrets:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Pull latest awslabs/git-secrets repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
repository: awslabs/git-secrets
ref: 1.3.0
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Install git secrets from source
run: sudo make install
working-directory: git-secrets
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Scan repository for git secrets
run: |
git secrets --register-aws
Expand All @@ -41,8 +41,8 @@ jobs:
working_dir: ['.']
timeout-minutes: 10
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: golangci/golangci-lint-action@v6 # v6.1.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: golangci/golangci-lint-action@v9 # v6.1.0
with:
version: v${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.working_dir }}
Expand All @@ -51,25 +51,25 @@ jobs:
name: yamllint-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- run: yamllint .
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout finch-deamon repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Build the daemon
run: make build
- name: Run unit tests
run: make test-unit
- name: Create build artifacts
run: tar -cvf build-artifacts.tar bin/
- name: Upload build artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: build-artifacts
path: build-artifacts.tar
Expand All @@ -85,19 +85,19 @@ jobs:
fail-fast: false
timeout-minutes: 10
steps:
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout finch-daemon repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Stop pre-existing containerd and docker services
run: |
sudo systemctl stop docker
sudo systemctl stop containerd
- name: Install Dependencies for e2e Testing
run: ./setup-test-env.sh --runc-version ${{ matrix.runc }} --containerd-version ${{ matrix.containerd }} --nerdctl-version ${{ matrix.nerdctl }}
- name: Download build artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: build-artifacts
- name: Extract build artifacts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/finch-vm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
git config --global --add safe.directory "*"
shell: bash

- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
cache: false
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
shell: bash

- name: Checkout mainline finch repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
# TODO: revert to main
ref: updated-finch-core-nerdctl
Expand All @@ -74,7 +74,7 @@ jobs:
submodules: recursive

- name: Checkout finch-daemon PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ github.event.pull_request.head.sha || 'main' }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
outputs:
tag: ${{ steps.latest-tag.outputs.tag }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: 'Get the latest tag'
Expand All @@ -29,10 +29,10 @@ jobs:
DYNAMIC_BINARY_NAME: ''
STATIC_BINARY_NAME: ''
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-tags: true
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
cache: false
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
exit 1
fi
shell: bash
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: artifacts
path: release/
Expand All @@ -83,8 +83,8 @@ jobs:
needs: generate-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v5
- uses: actions/checkout@v6
- uses: actions/download-artifact@v7
with:
name: artifacts
path: release/
Expand All @@ -93,8 +93,8 @@ jobs:
needs: [generate-artifacts, validate-artifacts]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v5
- uses: actions/checkout@v6
- uses: actions/download-artifact@v7
with:
name: artifacts
- uses: softprops/action-gh-release@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- name: release-please-action
uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3.0
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release
with:
target-branch: ${{ github.head_ref || github.ref_name }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/samcli-direct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@ jobs:
steps:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
role-to-assume: ${{secrets.SAMCLI_DIRECT_ROLE_BASE}}
role-session-name: samcli-${{ matrix.test_step.name }}-tests
aws-region: ${{ secrets.REGION }}
role-duration-seconds: 2000

- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}

# from aws/aws-sam-cli/setup.py: python_requires=">=3.9, <=4.0, !=4.0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Checkout finch-daemon
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: Checkout SAM CLI
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: aws/aws-sam-cli
submodules: recursive
Expand Down Expand Up @@ -148,10 +148,10 @@ jobs:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708
with:
role-to-assume: ${{ secrets.SAMCLI_DIRECT_ROLE_BASE }}
role-session-name: cleanup-samcli-direct
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/samcli-vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
shell: bash

- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
cache: false
Expand All @@ -56,7 +56,7 @@ jobs:
run: su ec2-user -c 'echo "A" | /usr/sbin/softwareupdate --install-rosetta --agree-to-license || true'

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
shell: bash

- name: Checkout mainline finch repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: main
repository: runfinch/finch
Expand All @@ -102,7 +102,7 @@ jobs:
submodules: recursive

- name: Checkout finch-daemon PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
role-to-assume: ${{ secrets.SAMCLI_VM_ROLE_SYNC }}
role-session-name: samcli-finch-vm-sequential-tests
Expand All @@ -163,7 +163,7 @@ jobs:
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: Checkout SAM CLI
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: aws/aws-sam-cli
submodules: recursive
Expand Down Expand Up @@ -228,10 +228,10 @@ jobs:
sudo rm -rf /tmp/finch-* || true

- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708
with:
role-to-assume: ${{ secrets.SAMCLI_VM_ROLE_SYNC }}
role-session-name: cleanup
Expand Down
Loading
Loading