feat: Allow more managed policies to be attached #192
Workflow file for this run
  
    
      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
    
  
  
    
  | name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - .editorconfig | |
| - .gitignore | |
| - CHANGELOG.md | |
| - LICENSE.md | |
| - Makefile | |
| - README.md | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - .editorconfig | |
| - .gitignore | |
| - CHANGELOG.md | |
| - LICENSE.md | |
| - Makefile | |
| - README.md | |
| jobs: | |
| verify: | |
| name: Verify | |
| permissions: | |
| contents: read | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "1.12" | |
| - name: Initialise with no backend | |
| run: terraform init -backend=false | |
| - name: Check formatting | |
| run: terraform fmt -check -recursive | |
| - name: Validate the configuration | |
| run: terraform validate | |
| - name: Configure AWS credentials | |
| if: github.event_name == 'push' && github.repository == 'unfunco/terraform-aws-oidc-github' | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: ${{ vars.AWS_REGION }} | |
| role-session-name: OIDCGitHubActionsTerraformTest${{ github.run_id }} | |
| role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github | |
| - name: Run unit tests | |
| if: github.event_name == 'push' && github.repository == 'unfunco/terraform-aws-oidc-github' | |
| run: terraform test | |
| release: | |
| name: Release? | |
| if: github.event == 'push' | |
| needs: [ verify ] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Prepare a release | |
| uses: googleapis/release-please-action@v4 | |
| with: | |
| config-file: .github/release-please-config.json | |
| manifest-file: .github/release-please-manifest.json | |
| token: ${{ secrets.GITHUB_TOKEN }} |