Skip to content

Commit ae24c73

Browse files
authored
chore(ci): Replace contract sync workflow with direct CLI usage (#2727)
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
1 parent 59f8e45 commit ae24c73

5 files changed

Lines changed: 17 additions & 10 deletions

File tree

.github/workflows/contracts/chainloop-vault-codeql.yml renamed to .github/workflows/contracts/chainloop-vault-codeql.yaml

File renamed without changes.

.github/workflows/contracts/chainloop-vault-helm-package.yml renamed to .github/workflows/contracts/chainloop-vault-helm-package.yaml

File renamed without changes.

.github/workflows/contracts/chainloop-vault-release.yml renamed to .github/workflows/contracts/chainloop-vault-release.yaml

File renamed without changes.

.github/workflows/contracts/chainloop-vault-scorecards.yml renamed to .github/workflows/contracts/chainloop-vault-scorecards.yaml

File renamed without changes.
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
# This workflow uses actions that are not certified by GitHub. They are provided
2-
# by a third-party and are governed by separate terms of service, privacy
3-
# policy, and support documentation.
4-
51
name: Sync Chainloop Workflow contracts
62
on:
73
push:
8-
branches: [ "main" ]
4+
branches: ["main"]
95
paths:
10-
- '.github/workflows/contracts/**'
6+
- ".github/workflows/contracts/**"
117
schedule:
128
- cron: "0 0 * * *" # daily at midnight
139

@@ -16,7 +12,18 @@ permissions: read-all
1612

1713
jobs:
1814
chainloop_contract_sync:
19-
name: Chainloop Contract Sync
20-
uses: chainloop-dev/labs/.github/workflows/chainloop_contract_sync.yml@5344787a72876bd22e199b94c09a86532521b4b3
21-
secrets:
22-
api_token: ${{ secrets.CHAINLOOP_TOKEN }}
15+
name: "Chainloop Contract Sync"
16+
runs-on: ubuntu-latest
17+
env:
18+
CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }}
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
- name: Install Chainloop
23+
run: |
24+
curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s
25+
- name: Update contract definitions
26+
run: |
27+
for file in .github/workflows/contracts/*.yaml; do
28+
chainloop wf contract apply -f $file
29+
done

0 commit comments

Comments
 (0)