-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (38 loc) · 1.11 KB
/
upload-cli-layer.yml
File metadata and controls
43 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Upload Kosli cli lambda layer
on:
workflow_call:
inputs:
tag:
required: true
type: string
AWS_ACCOUNT_ID:
required: true
type: string
AWS_REGION:
required: true
type: string
jobs:
upload-layer:
runs-on: ubuntu-24.04
permissions:
id-token: write
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: audit
- uses: actions/checkout@v6
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::${{ inputs.AWS_ACCOUNT_ID }}:role/cli
aws-region: ${{ inputs.AWS_REGION }}
role-duration-seconds: 2400
role-session-name: ${{ github.event.repository.name }}
- name: Upload reporter lambda package
id: upload-reporter-lambda-package
env:
TAG: ${{ inputs.tag }}
AWS_ACCOUNT_ID: ${{ inputs.AWS_ACCOUNT_ID }}
run: ./bin/upload_cli_layer.sh