This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
feat: use JS instead of bash for connecting to vault and give the token out. #33
Workflow file for this run
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: Pull Request | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr-validation: | |
name: Pull Request Validation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Pull request size and stability labels | |
uses: actions/labeler@v4 | |
continue-on-error: true | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Conventional Label | |
uses: bcoe/conventional-release-labels@v1 | |
continue-on-error: true | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ignored_types: '["chore","pr"]' | |
type_labels: '{"feat": "feature", "fix": "fix", "bug": "fix", "doc": "documentation", "ci": "ci", "chore": "chore", "breaking": "breaking", "BREAKING CHANGE": "breaking"}' | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
with: | |
ref: refs/heads/${{ github.head_ref }} | |
- name: Conventional Changelog Update | |
continue-on-error: true | |
uses: TriPSs/conventional-changelog-action@v3 | |
id: changelog | |
with: | |
github-token: ${{ github.token }} | |
output-file: 'CHANGELOG.md' | |
skip-version-file: 'true' | |
skip-commit: 'true' | |
git-push: 'false' | |
git-branch: refs/heads/${{ github.head_ref }} | |
- name: Checkout pr | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: Comment PR | |
continue-on-error: true | |
uses: thollander/actions-comment-pull-request@v2 | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
with: | |
message: | | |
# Current changelog | |
${{ steps.changelog.outputs.clean_changelog }} | |
comment_tag: '# Current changelog' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
retags: | |
name: Test action | |
permissions: | |
packages: write | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Retags | |
id: broker | |
uses: ./ | |
with: | |
broker_jwt: ${{ secrets.BROKER_JWT }} | |
provision_role_id: ${{ secrets.PROVISION_ROLE }} | |
project_name: nr-oracle | |
app_name: nr-oracle-service | |
environment: development | |
- name: Import Secrets | |
id: secrets | |
uses: hashicorp/vault-action@v2.7.4 | |
with: | |
url: https://vault-iit.apps.silver.devops.gov.bc.ca | |
token: ${{ steps.broker.outputs.vault_token }} | |
exportEnv: 'false' | |
secrets: | | |
apps/data/${{ secrets.SECRET_PATH}} test | TEST; | |
- name: Checks | |
run: echo ${{ steps.secrets.outputs.TEST }} |