-
Notifications
You must be signed in to change notification settings - Fork 107
chore: GitHub setup #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
eef3948
feat: add pre-commit, pull request template, and fixes
scottschreckengaust a4e56b7
feat: add bandit baseline
scottschreckengaust 937a7b6
fix: markdown lint
scottschreckengaust b40f2ad
fix: change the baseline commit for semgrep
scottschreckengaust cb0a7ef
chore: update pre-commit hooks
scottschreckengaust 2cc0490
fix: validator cross refs for plugins
scottschreckengaust de2b3a5
feat: add validate cross references to ci
scottschreckengaust 3bdf0f1
feat: add advanced CodeQL
scottschreckengaust eca15b9
docs: add CODEOWNERS file
scottschreckengaust bb35971
feat: ignore more feature
scottschreckengaust 05a3763
fix: stuff
scottschreckengaust 3d248fc
fix: remove push
scottschreckengaust 8c554c9
fix: unmatrix pre-commit
scottschreckengaust b7da6f4
Merge branch 'main' into feature/github-setup
scottschreckengaust 6c8ef52
fix: gitleaks ignore
scottschreckengaust 1649160
fix: semgrep only on pre-push
scottschreckengaust dd5b758
Merge branch 'main' into feature/github-setup
scottschreckengaust 4ff1706
Add Dependency Review workflow for pull requests
scottschreckengaust 9334a84
feat: add grype and checkov
scottschreckengaust 0dab20d
fix: update filelock
scottschreckengaust 6c9b86e
fix: update virtualenv
scottschreckengaust 016f862
feat: add codeql and dependency review
scottschreckengaust f56af0b
fix: addressing comments
scottschreckengaust bce436a
fix: remove hardcoded repo
scottschreckengaust 034a18d
fix: updated mise version
scottschreckengaust 6778ab3
Merge branch 'main' into feature/github-setup
scottschreckengaust 6d42975
feat: rename scanners workflow
scottschreckengaust 7c47cdd
feat: add pull request linting workflow
scottschreckengaust aa8eef9
fix: CODEOWNERS updates
scottschreckengaust 065f9cc
fix: concurrency and switching notice to debug
scottschreckengaust 92bf6b4
fix: title Scorecard
scottschreckengaust 5acaa31
fix: naming and remove allowed license
scottschreckengaust b9844fc
fix: bandit to main commit hash
scottschreckengaust File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "errors": [], | ||
| "generated_at": "2026-02-05T22:50:21Z", | ||
| "metrics": { | ||
| "_totals": { | ||
| "CONFIDENCE.HIGH": 0, | ||
| "CONFIDENCE.LOW": 0, | ||
| "CONFIDENCE.MEDIUM": 0, | ||
| "CONFIDENCE.UNDEFINED": 0, | ||
| "SEVERITY.HIGH": 0, | ||
| "SEVERITY.LOW": 0, | ||
| "SEVERITY.MEDIUM": 0, | ||
| "SEVERITY.UNDEFINED": 0, | ||
| "loc": 0, | ||
| "nosec": 0, | ||
| "skipped_tests": 0 | ||
| } | ||
| }, | ||
| "results": [] | ||
| } |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,36 @@ | ||
| { | ||
| "name": "awslabs-agent-plugins", | ||
| "owner": { | ||
| "name": "Amazon Web Services", | ||
| "email": "aws-agent-plugins@amazon.com" | ||
| }, | ||
| "metadata": { | ||
| "description": "Official AWS plugins for Claude Code, Cursor, and AI coding assistants.", | ||
| "version": "1.0.0" | ||
| }, | ||
| "name": "awslabs-agent-plugins", | ||
| "owner": { | ||
| "email": "aws-agent-plugins@amazon.com", | ||
| "name": "Amazon Web Services" | ||
| }, | ||
| "plugins": [ | ||
| { | ||
| "category": "deployment", | ||
| "description": "Deploy any application to AWS. Get architecture recommendations, cost estimates, and one-command deployment.", | ||
| "keywords": [ | ||
| "aws", | ||
| "aws agent skills", | ||
| "amazon", | ||
| "deploy", | ||
| "cdk", | ||
| "cloudformation", | ||
| "infrastructure", | ||
| "pricing" | ||
| ], | ||
| "name": "deploy-on-aws", | ||
| "source": "./plugins/deploy-on-aws", | ||
| "description": "Deploy any application to AWS. Get architecture recommendations, cost estimates, and one-command deployment.", | ||
| "version": "1.0.0", | ||
| "category": "deployment", | ||
| "tags": ["aws", "deploy", "infrastructure", "cdk"], | ||
| "keywords": ["aws", "aws agent skills", "amazon", "deploy", "cdk", "cloudformation", "infrastructure", "pricing"] | ||
| "tags": [ | ||
| "aws", | ||
| "deploy", | ||
| "infrastructure", | ||
| "cdk" | ||
| ], | ||
| "version": "1.0.0" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # [CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#about-code-owners) | ||
|
|
||
| ## Default owners for everything in the repo | ||
|
|
||
| * @awslabs/agent-plugins-admins @awslabs/agent-plugins-maintainers | ||
|
|
||
| ## Adminstrators | ||
|
|
||
| .bandit-baseline.json @awslabs/agent-plugins-admins | ||
| .claude-plugin/ @awslabs/agent-plugins-admins | ||
| .github/ @awslabs/agent-plugins-admins | ||
| .gitignore @awslabs/agent-plugins-admins | ||
| .gitleaks-baseline.json @awslabs/agent-plugins-admins | ||
| .gitleaks.toml @awslabs/agent-plugins-admins | ||
| .gitleaksignore @awslabs/agent-plugins-admins | ||
| .markdownlint-cli2.yaml @awslabs/agent-plugins-admins | ||
| AGENTS.md @awslabs/agent-plugins-admins | ||
| CLAUDE.md @awslabs/agent-plugins-admins | ||
| CODE_OF_CONDUCT.md @awslabs/agent-plugins-admins | ||
| CONTRIBUTING.md @awslabs/agent-plugins-admins | ||
| DEVELOPMENT_GUIDE.md @awslabs/agent-plugins-admins | ||
| dprint.json @awslabs/agent-plugins-admins | ||
| LICENSE @awslabs/agent-plugins-admins | ||
| mise.toml @awslabs/agent-plugins-admins | ||
| NOTICE @awslabs/agent-plugins-admins | ||
| plugins/ @awslabs/agent-plugins-admins | ||
| README.md @awslabs/agent-plugins-admins | ||
| schemas/ @awslabs/agent-plugins-admins | ||
| tools/ @awslabs/agent-plugins-admins | ||
|
|
||
| ## File must end with CODEOWNERS file | ||
|
|
||
| .github/CODEOWNERS @awslabs/agent-plugins-admins |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Summarize the pull request --> | ||
|
|
||
| #### Related | ||
|
|
||
| <!-- Issue #, Vulnerability, References if available:* --> | ||
|
|
||
| #### Changes | ||
|
|
||
| <!-- Description of changes:* --> | ||
|
|
||
| #### Acknowledgment | ||
|
|
||
| By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the [project license](https://github.com/awslabs/agent-plugins/blob/main/LICENSE). |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| # For most projects, this workflow file will not need changing; you simply need | ||
| # to commit it to your repository. | ||
| # | ||
| # You may wish to alter this file to override the set of languages analyzed, | ||
| # or to provide custom queries or build logic. | ||
| # | ||
| # ******** NOTE ******** | ||
| # We have attempted to detect the languages in your repository. Please check | ||
| # the `language` matrix defined below to confirm you have the correct set of | ||
| # supported CodeQL languages. | ||
| # | ||
| name: "CodeQL Advanced" | ||
|
|
||
| permissions: | ||
| actions: none | ||
| attestations: none | ||
| checks: none | ||
| contents: none | ||
| deployments: none | ||
| discussions: none | ||
| id-token: none | ||
| issues: none | ||
| models: none | ||
| packages: none | ||
| pages: none | ||
| pull-requests: none | ||
| repository-projects: none | ||
| security-events: none | ||
| statuses: none | ||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '23 14 * * 3' | ||
| workflow_dispatch: | ||
| jobs: | ||
| analyze: | ||
| name: Analyze (${{ matrix.language }}) | ||
| # Runner size impacts CodeQL analysis time. To learn more, please see: | ||
| # - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
| # - https://gh.io/supported-runners-and-hardware-resources | ||
| # - https://gh.io/using-larger-runners (GitHub.com only) | ||
| # Consider using larger runners or machines with greater resources for possible analysis time improvements. | ||
| runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
| permissions: | ||
| # required for all workflows | ||
| security-events: write | ||
|
|
||
| # required to fetch internal or private CodeQL packs | ||
| packages: read | ||
|
|
||
| # only required for workflows in private repositories | ||
| actions: read | ||
| contents: read | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: actions | ||
| build-mode: none | ||
| - language: javascript-typescript | ||
| build-mode: none | ||
| # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' | ||
| # Use `c-cpp` to analyze code written in C, C++ or both | ||
| # Use 'java-kotlin' to analyze code written in Java, Kotlin or both | ||
| # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both | ||
| # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, | ||
| # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. | ||
| # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | ||
| # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| # Add any setup steps before running the `github/codeql-action/init` action. | ||
| # This includes steps like installing compilers or runtimes (`actions/setup-node` | ||
| # or others). This is typically only required for manual builds. | ||
| # - name: Setup runtime (example) | ||
| # uses: actions/setup-example@v1 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| # If you wish to specify custom queries, you can do so here or in a config file. | ||
| # By default, queries listed here will override any specified in a config file. | ||
| # Prefix the list here with "+" to use these queries and those in the config file. | ||
|
|
||
| # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
| # queries: security-extended,security-and-quality | ||
|
|
||
| # If the analyze step fails for one of the languages you are analyzing with | ||
| # "We were unable to automatically build your code", modify the matrix above | ||
| # to set the build mode to "manual" for that language. Then modify this step | ||
| # to build your code. | ||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
| - name: Run manual build steps | ||
| if: matrix.build-mode == 'manual' | ||
| shell: bash | ||
| run: | | ||
| echo 'If you are using a "manual" build mode for one or more of the' \ | ||
| 'languages you are analyzing, replace this with the commands to build' \ | ||
| 'your code, for example:' | ||
| echo ' make bootstrap' | ||
| echo ' make release' | ||
| exit 1 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: 'Dependency Review' | ||
| on: [pull_request] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| dependency-review: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/dependency-review-action@v4 | ||
| with: | ||
| config-file: amazon-ospo/dependency-review-config/default/dependency-review-config.yml@main | ||
| # # distlib | ||
| # allow-dependencies-licenses: "pkg:pypi/distlib@0.4.0" |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| --- | ||
| # This workflow is to prevent unintentional merges that cannot be accomplished by rulesets or other settings. | ||
| name: Merge Prevention | ||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| - edited | ||
| - labeled | ||
| - unlabeled | ||
| merge_group: | ||
| types: | ||
| - checks_requested | ||
| permissions: | ||
| actions: none | ||
| attestations: none | ||
| checks: none | ||
| contents: none | ||
| deployments: none | ||
| discussions: none | ||
| id-token: none | ||
| issues: none | ||
| models: none | ||
| packages: none | ||
| pages: none | ||
| pull-requests: none | ||
| repository-projects: none | ||
| security-events: none | ||
| statuses: none | ||
| env: | ||
| DO_NOT_MERGE_LABEL: ${{ vars.DO_NOT_MERGE_LABEL || 'do-not-merge' }} | ||
| HALT_MERGES: ${{ vars.HALT_MERGES || '0' }} | ||
| jobs: | ||
| get-pr-info: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| # id-token: write | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| pr_number: ${{ steps.get-pr.outputs.pr-number }} | ||
| pr_labels: ${{ steps.get-pr.outputs.pr-labels }} | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| PR_LABELS_JSON: ${{ toJson(github.event.pull_request.labels.*.name) }} | ||
| steps: | ||
| - name: Get PR info | ||
| id: get-pr | ||
| run: | | ||
| if [ "${{ github.event_name }}" == "merge_group" ]; then | ||
| PR_NUMBER=$(echo "${{ github.ref }}" | grep -oP '(?<=/pr-)\d+' || echo "") | ||
| PR_LABELS=$(gh api repos/${{ github.repository }}/pulls/$PR_NUMBER | jq -c '[.labels[].name] // []') | ||
| echo "::group::Getting Information" | ||
| gh api repos/${{ github.repository }}/pulls/$PR_NUMBER | ||
| echo "::endgroup::" | ||
| elif [ "${{ github.event_name }}" == "pull_request" ]; then | ||
| PR_NUMBER="${{ github.event.pull_request.number }}" | ||
| PR_LABELS=$(echo "$PR_LABELS_JSON" | jq -c '.') | ||
| fi | ||
| echo "::group::Debug Output Values" | ||
| echo "PR_NUMBER: $PR_NUMBER" | ||
| echo "PR_LABELS: $PR_LABELS" | ||
| echo "::endgroup::" | ||
| echo "pr-number=$PR_NUMBER" >> $GITHUB_OUTPUT | ||
| echo "pr-labels=$PR_LABELS" >> $GITHUB_OUTPUT | ||
| check-merge-status: | ||
| runs-on: ubuntu-latest | ||
| needs: get-pr-info | ||
| if: always() | ||
| steps: | ||
| - run: | | ||
| PR_NUMBER="${{ needs.get-pr-info.outputs.pr_number }}" | ||
| # Default to 0 (allow all) if not set | ||
| if [ -z "$HALT_MERGES" ]; then | ||
| HALT_MERGES=0 | ||
| fi | ||
| echo "::debug::HALT_MERGES value: $HALT_MERGES" | ||
| echo "::debug::This PR number: $PR_NUMBER" | ||
| if [ "$HALT_MERGES" = "0" ]; then | ||
| echo "::debug::✅ All merges are allowed (HALT_MERGES=0)" | ||
| exit 0 | ||
| elif [ "$HALT_MERGES" = "$PR_NUMBER" ]; then | ||
| echo "::debug::✅ This PR #$PR_NUMBER is explicitly allowed" | ||
| exit 0 | ||
| else | ||
| echo "::debug::🛑 Merges are blocked. HALT_MERGES is set to $HALT_MERGES" | ||
| if [ "$HALT_MERGES" -lt 0 ]; then | ||
| echo "::error::All merges are blocked" | ||
| else | ||
| echo "::warning::Only PR #$HALT_MERGES is allowed to merge" | ||
| fi | ||
| exit 1 | ||
| fi | ||
| fail-by-label: | ||
| runs-on: ubuntu-latest | ||
| needs: get-pr-info | ||
| if: always() | ||
| steps: | ||
| - run: | | ||
| echo "::group::Debug Output Values" | ||
| echo "PR_LABELS: ${{ needs.get-pr-info.outputs.pr_labels }}" | ||
| echo "::endgroup::" | ||
| - name: When PR has the "${{ env.DO_NOT_MERGE_LABEL }}" label | ||
| id: pr-has-label | ||
| if: contains(needs.get-pr-info.outputs.pr_labels, env.DO_NOT_MERGE_LABEL) | ||
| run: | | ||
| echo "::error::❌ The label \"${{ env.DO_NOT_MERGE_LABEL }}\" is used to prevent merging." | ||
| exit 1 | ||
| - name: When PR does not have the "${{ env.DO_NOT_MERGE_LABEL }}" label | ||
| id: pr-missing-label | ||
| if: ! contains(needs.get-pr-info.outputs.pr_labels, env.DO_NOT_MERGE_LABEL) | ||
| run: | | ||
| echo "::debug::✅ The label \"${{ env.DO_NOT_MERGE_LABEL }}\" is absent" | ||
| exit 0 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.