Skip to content

Commit

Permalink
Merge branch 'main' into feature/instance-store-ephemeral-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-rabold authored Dec 13, 2023
2 parents bb62cc9 + a9a1557 commit 4cab2f6
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 787 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,44 @@ on:
branches:
- 'main'
- 'release-v*'
pull_request:
schedule:
- cron: '0 12 * * *'
jobs:
analyze:
if: github.repository == 'aws/karpenter-provider-aws'
name: Analyze
analyze-go:
name: Analyze Go
runs-on: ubuntu-latest
permissions:
actions: read # github/codeql-action/init@v2
security-events: write # github/codeql-action/init@v2

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./.github/actions/install-deps
- run: make vulncheck
- uses: github/codeql-action/init@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.22.8
with:
languages: ${{ matrix.language }}
languages: go
- uses: github/codeql-action/autobuild@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.22.8
- uses: github/codeql-action/analyze@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.22.8
# Javascript is added here for evaluating Github Action vulnerabilities
# https://github.blog/2023-08-09-four-tips-to-keep-your-github-actions-workflows-secure/#2-enable-code-scanning-for-workflows
analyze-github-actions:
name: Analyze Github Actions
runs-on: ubuntu-latest
permissions:
actions: read # github/codeql-action/init@v2
security-events: write # github/codeql-action/init@v2
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: github/codeql-action/init@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.22.8
with:
languages: javascript
config: |
packs:
# Use the latest version of 'codeql-javascript' published by 'advanced-security'
# This will catch things like actions that aren't pinned to a hash
- advanced-security/codeql-javascript
paths:
- '.github/workflows'
- '.github/actions'
- uses: github/codeql-action/analyze@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.22.8
2 changes: 1 addition & 1 deletion .github/workflows/e2e-soak-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
outputs:
PREEXISTING_CLUSTERS: ${{ steps.list_clusters.outputs.PREEXISTING_CLUSTERS }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pr-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ jobs:
role-to-assume: 'arn:aws:iam::${{ vars.ECR_ACCOUNT_ID }}:role/${{ vars.ECR_SNAPSHOT_ROLE_NAME }}'
aws-region: ${{ vars.ECR_REGION }}
- run: make snapshot
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
GH_PR_NUMBER: ${{ env.PR_NUMBER }}
ECR_ACCOUNT_ID: ${{ vars.ECR_ACCOUNT_ID }}
ECR_REGION: ${{ vars.ECR_REGION }}
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
github.rest.issues.createComment({
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/publish-test-tools.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/resource-count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: configure aws credentials
uses: aws-actions/[email protected]
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
role-to-assume: arn:aws:iam::${{ vars.ACCOUNT_ID }}:role/${{ vars.ROLE_NAME }}
aws-region: ${{ matrix.region }}
Expand Down
23 changes: 0 additions & 23 deletions examples/provisioner/100-cpu-limit.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions examples/provisioner/bottlerocket.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions examples/provisioner/general-purpose.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions examples/provisioner/large-instances.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions examples/provisioner/launchtemplates/al2-custom-ami.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions examples/provisioner/launchtemplates/al2-custom-userdata.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions examples/provisioner/launchtemplates/al2-kubelet-log-query.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions examples/provisioner/launchtemplates/br-custom-userdata.yaml

This file was deleted.

Loading

0 comments on commit 4cab2f6

Please sign in to comment.