Skip to content

Commit

Permalink
authenticate API requests from GitHub runners as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Feb 7, 2025
1 parent ce91942 commit f5229b0
Show file tree
Hide file tree
Showing 149 changed files with 894 additions and 149 deletions.
7 changes: 6 additions & 1 deletion .github/package-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/amazon-ecr-credential-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/amtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/argocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/assume-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/atlantis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/atmos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/awless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/aws-copilot-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/aws-iam-authenticator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/aws-nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/aws-vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/cfssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/cfssljson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/chamber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/cilium-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/cli53.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/cloud-nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/cloudflared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
# 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 || '' }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
Expand Down
Loading

0 comments on commit f5229b0

Please sign in to comment.