Implemented Allowed IP List Feature and Fixed a bug in Token Denylist #19
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
# This is a basic workflow to help you get started with Actions | |
name: 'Notify (DOCS)' | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- demo/docker-compose/README.md | |
- demo/kubernetes/README.md | |
- README.md | |
workflow_dispatch: | |
jobs: | |
notify: | |
name: 'Notify docs about api-firewall demo docs changes' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: GitHub API Call to notify product-docs-en | |
env: | |
FIREWALL_DOCS_TOKEN: ${{ secrets.FIREWALL_DOCS_TOKEN }} | |
PARENT_REPO: wallarm/product-docs-en | |
PARENT_BRANCH: master | |
WORKFLOW_ID: 11686992 | |
run: |- | |
curl \ | |
-fL --retry 3 \ | |
-X POST \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
-H "Authorization: token ${{ env.FIREWALL_DOCS_TOKEN }}" \ | |
https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches \ | |
-d '{"ref":"${{ env.PARENT_BRANCH }}"}' | |
dockerHubDescription: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Docker Hub Description | |
uses: peter-evans/dockerhub-description@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
repository: wallarm/api-firewall | |
short-description: ${{ github.event.repository.description }} |