Skip to content

Commit

Permalink
Try authenticated curl API calls for Cloudsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Feb 7, 2025
1 parent b79a1d0 commit 0e32f6e
Show file tree
Hide file tree
Showing 149 changed files with 745 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/package-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/amazon-ecr-credential-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/amtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/argocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/assume-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/atlantis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/atmos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/awless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/aws-copilot-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/aws-iam-authenticator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/aws-nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/aws-vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cfssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cfssljson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/chamber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cilium-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cli53.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cloud-nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cloudflared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/conftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/consul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ctop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/direnv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/doctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ec2-instance-selector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ecspresso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/emailcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/envcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/figurine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/fzf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ jobs:
# Publish the artifacts
- name: "Push artifact to package repository"
uses: cloudsmith-io/action@v0.6.10
env:
# This is a hack. We need to hack the action by setting up a `curl` wrapper
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
# that we do not have half the packages timing out.
GITHUB_TOKEN: "${{ matrix.arch == 'arm64' && secrets.GITHUB_TOKEN || '' }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
Loading

0 comments on commit 0e32f6e

Please sign in to comment.