Skip to content

Commit

Permalink
adding github token
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Mar 4, 2025
1 parent a7e7b18 commit 60c8073
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ec2-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Reusable EC2 Integration Test
env:
PRIVATE_KEY: ${{ secrets.AWS_PRIVATE_KEY }}
KEY_NAME: ${{ secrets.KEY_NAME }}
TF_VAR_github_token: ${{ secrets.SELINUX_TESTING }}
TERRAFORM_AWS_ASSUME_ROLE_DURATION: 14400 # 4 hours

on:
Expand Down Expand Up @@ -102,6 +103,7 @@ jobs:
-var="cwa_github_sha=${{inputs.github_sha}}" \
-var="install_agent=${{ matrix.arrays.installAgentCommand }}" \
-var="github_test_repo_branch=${{inputs.test_repo_branch}}" \
-var="github_token=${{ env.TF_VAR_github_token }}" \
-var="ec2_instance_type=${{ matrix.arrays.instanceType }}" \
-var="user=${{ matrix.arrays.username }}" \
-var="ami=${{ matrix.arrays.ami }}" \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
S3_INTEGRATION_BUCKET_ITAR: ${{ vars.S3_INTEGRATION_BUCKET_ITAR }}
TERRAFORM_AWS_ASSUME_ROLE_CN: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE_CN }}
S3_INTEGRATION_BUCKET_CN: ${{ vars.S3_INTEGRATION_BUCKET_CN }}
github_token: ${{ secrets.SELINUX_TESTING }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -394,6 +395,7 @@ jobs:
terraform_assume_role: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE }}
s3_integration_bucket: ${{ vars.S3_INTEGRATION_BUCKET }}
is_selinux_test: true

secrets: inherit

EC2LinuxIntegrationTestITAR:
Expand Down

0 comments on commit 60c8073

Please sign in to comment.