Fetch all roles #3183
This file contains 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: Fetch all roles | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "44 */12 * * *" | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v2 | |
- uses: google-github-actions/setup-gcloud@v0 | |
with: | |
version: 'latest' | |
service_account_key: ${{ secrets.GCP_SA_KEY }} | |
- name: set gcp project | |
run: gcloud config set project darkbit-audit-resources | |
- name: fetch all iam roles | |
run: ./fetch-all-roles.sh | |
- name: commit, tag, and release | |
run: ./.github/commit-and-release.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |