cherry-pick(1.0.x): test: bump pinned AMIs for 1.31 (#7136) #6851
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release-v*' | |
- 'staging/*' | |
pull_request: | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
analyze-go: | |
name: Analyze Go | |
if: github.repository == 'aws/karpenter-provider-aws' | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read # github/codeql-action/init@v2 | |
security-events: write # github/codeql-action/init@v2 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- uses: ./.github/actions/install-deps | |
- run: make vulncheck | |
- uses: github/codeql-action/init@df32e399139a3050671466d7d9b3cbacc1cfd034 # v2.22.8 | |
with: | |
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 | |
if: github.repository == 'aws/karpenter-provider-aws' | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read # github/codeql-action/init@v2 | |
security-events: write # github/codeql-action/init@v2 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- 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 |