Skip to content

Remove duplicate dependency submission workflow #1700

Remove duplicate dependency submission workflow

Remove duplicate dependency submission workflow #1700

Workflow file for this run

# Find full documentation here https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: CI
on:
pull_request:
# Manual invocation.
workflow_dispatch:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
id-token: write
contents: read
pull-requests: write # required by guardian/actions-riff-raff
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
# Configuring caching is also recommended.
# See https://github.com/actions/setup-java
- name: Setup Java 11
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
java-version: '11'
distribution: 'corretto'
cache: 'sbt'
- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'cdk/package-lock.json'
# This step creates an environment variable `BUILD_NUMBER`.
# It is used by:
# - The `script/ci` script
# - The CDK infrastructure
# - The `guardian/actions-riff-raff` GitHub Action
- run: |
LAST_TEAMCITY_BUILD=1265
echo "BUILD_NUMBER=$(( $GITHUB_RUN_NUMBER + $LAST_TEAMCITY_BUILD ))" >> $GITHUB_ENV
- name: Run script/ci
run: ./script/ci
- uses: guardian/actions-riff-raff@8f9e540befd27a2bf028d94c0a77d0f4d60d4afc # v4.0.8
with:
projectName: security-hq
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
buildNumber: ${{ env.BUILD_NUMBER }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
configPath: hq/conf/riff-raff.yaml
contentDirectories: |
security-hq-cfn:
- cdk/cdk.out/security-hq.template.json
security-hq:
- dist