mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-29 16:17:32 +00:00
chore(ci): added aws credentials role to the reusable_publish_packages workflow.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
2af7fd9f0f
commit
9551e9f277
15
.github/workflows/reusable_publish_packages.yaml
vendored
15
.github/workflows/reusable_publish_packages.yaml
vendored
@ -12,6 +12,9 @@ on:
|
|||||||
default: ''
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
env:
|
||||||
|
AWS_S3_REGION: eu-west-1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-packages:
|
publish-packages:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -27,6 +30,12 @@ jobs:
|
|||||||
yum install rpm-sign expect which createrepo gpg python python-pip -y
|
yum install rpm-sign expect which createrepo gpg python python-pip -y
|
||||||
pip install awscli==1.19.47
|
pip install awscli==1.19.47
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v2
|
||||||
|
with:
|
||||||
|
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket }}-s3"
|
||||||
|
aws-region: ${{ env.AWS_S3_REGION }}
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
@ -79,6 +88,12 @@ jobs:
|
|||||||
apt-get install apt-utils bzip2 gpg python python3-pip -y
|
apt-get install apt-utils bzip2 gpg python python3-pip -y
|
||||||
pip install awscli
|
pip install awscli
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v2
|
||||||
|
with:
|
||||||
|
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket }}-s3"
|
||||||
|
aws-region: ${{ env.AWS_S3_REGION }}
|
||||||
|
|
||||||
- name: Download deb artifacts
|
- name: Download deb artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user